You are not logged in.

#1 2018-03-16 18:09:40

coffeeguy
Member
Registered: 2016-10-20
Posts: 12

[SOLVED] Cannot mount .iso file. Failed to setup loop device error !

Every time I try to mount an ISO disk image using the command:

mount -t iso9660 -o ro,loop xyz.iso /mnt/iso

It keeps throwing the error:

mount: /mnt/iso: failed to setup loop device for xyz.iso

Other posts on the web suggested at the lack of a loop device module in the kernel, however

lsmod | grep loop

returns the output

loop                   32768  0

I even tried making a loopback-dev.conf file under /etc/modules-load.d/ with

loop

thinking it was booting without a loop module as mentioned here. Can anyone please help me out in trying to understand what is happening?

Last edited by coffeeguy (2018-03-17 05:45:42)

Offline

#2 2018-03-16 19:23:34

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED] Cannot mount .iso file. Failed to setup loop device error !

Your command works perfectly fine for me using the linux-lts kernel.
Have you rebooted since you last upgraded the kernel?

Offline

#3 2018-03-17 01:42:12

coffeeguy
Member
Registered: 2016-10-20
Posts: 12

Re: [SOLVED] Cannot mount .iso file. Failed to setup loop device error !

paulkerry wrote:

Your command works perfectly fine for me using the linux-lts kernel.
Have you rebooted since you last upgraded the kernel?

Absolutely! 2 times to be exact.

Offline

#4 2018-03-17 04:24:21

hamurai
Member
From: Austin
Registered: 2018-03-12
Posts: 4

Re: [SOLVED] Cannot mount .iso file. Failed to setup loop device error !

I get that same error if the `xyz.iso` doesn't exist / isn't in that directory. Are you sure the path is correct?

Offline

#5 2018-03-17 05:45:10

coffeeguy
Member
Registered: 2016-10-20
Posts: 12

Re: [SOLVED] Cannot mount .iso file. Failed to setup loop device error !

hamurai wrote:

I get that same error if the `xyz.iso` doesn't exist / isn't in that directory. Are you sure the path is correct?

Woops, you are right! My bad. Thanks a ton !

Offline

Board footer

Powered by FluxBB