Recovering from "uncleanly unmounted" loop devices
knighttof3_at_yahoo.com
Date: 07/21/05
- Previous message: knighttof3_at_yahoo.com: "Recovering from "uncleanly unmounted" loop devices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jul 2005 14:27:32 -0700
Hi,
I had mounted ccd1 and cd2.iso files onto cd1_dir and cd2_dir
directories manually, using -o loop option. While doing 'umount' I did
not give the -d option. (I did this twice!)
How can I clean them up and reclaim the /dev/loop* devices?
myhost /dev % foreach i ( 0 1 6 7 )
> sudo losetup -d /dev/loop$i
> end
ioctl: LOOP_CLR_FD: Device or resource busy
ioctl: LOOP_CLR_FD: Device or resource busy
ioctl: LOOP_CLR_FD: Device or resource busy
ioctl: LOOP_CLR_FD: Device or resource busy
myhost ~ % ps -ef | grep loop
root 16340 1 0 Jul19 ? 00:00:03 [loop0]
root 16342 1 0 Jul19 ? 00:00:03 [loop1]
root 3606 1 0 12:13 ? 00:00:00 [loop6]
root 3608 1 0 12:13 ? 00:00:00 [loop7]
naren 9375 4082 0 13:58 pts/7 00:00:00 grep loop
myhost ~ % foreach i (0 1 6 7)
> sudo losetup /dev/loop$i
> end
/dev/loop0: [0010]:116752640 (cd1.iso) offset 0, no encryption
/dev/loop1: [0010]:116752641 (cd2.iso) offset 0, no encryption
/dev/loop6: [0010]:116752640 (cd1.iso) offset 0, no encryption
/dev/loop7: [0010]:116752641 (cd2.iso) offset 0, no encryption
myhost ~ % mount | grep cd1
myhost ~ % mount | grep cd2
myhost ~ % cd dir
myhost ~/dir % sudo umount -f -d cd1_dir
umount2: Invalid argument
umount: cd1_dir: not mounted
myhost ~/dir % sudo umount -f -d cd2_dir
umount2: Invalid argument
umount: cd2_dir: not mounted
myhost ~/dir % sudo kill -9 16340 16342 3606 3608 # does not work!!!
myhost ~/dir % ps -ef | grep loop
root 16340 1 0 Jul19 ? 00:00:03 [loop0]
root 16342 1 0 Jul19 ? 00:00:03 [loop1]
root 3606 1 0 12:13 ? 00:00:00 [loop6]
root 3608 1 0 12:13 ? 00:00:00 [loop7]
naren 9405 4082 0 14:00 pts/7 00:00:00 grep loop
- Previous message: knighttof3_at_yahoo.com: "Recovering from "uncleanly unmounted" loop devices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|