You are not logged in.

#1 2009-08-28 10:25:53

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

[SOLVED]ioctl: LOOP_SET_FD: Device or resource busy

Hello, my loop device is busy:

$ sudo modprobe loop ; sudo mount -t iso9660 -o ro,loop=/dev/loop0 *.iso mnt
ioctl: LOOP_SET_FD: Device or resource busy
$ sudo rmmod loop
ERROR: Module loop is in use

The commands are issued on an external drive. I mounted the *.iso with the same command a while ago, and the external drive was unplugged accidently. But when I typed mount, their still was the entry showing the *.iso being mounted. (It's like a ghost process...)

So I just sudo umount mnt, then replugged the external drive in, issued the command above, and loop module/device is busy.

How can I troubleshoot this? And, of course, fix it. Thanks. smile

Last edited by lolilolicon (2009-08-28 10:53:34)


This silver ladybug at line 28...

Offline

#2 2009-08-28 10:53:07

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED]ioctl: LOOP_SET_FD: Device or resource busy

Yay, I got it working!

$ sudo losetup -f
/dev/loop1
$ sudo losetup -d /dev/loop0
$ sudo losetup -f
/dev/loop0
$ sudo modprobe loop ; sudo mount -t iso9660 -o ro,loop=/dev/loop0 *.iso mnt

OK


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB