Can't unmount anything
Hi: It seems with Suse 9.1 that anytime I mount something (as root) I cannot unmount it. For example: mango2:/home/crcarle # mount -o loop cd-rw/download.backup.iso /mnt Then view in Konqueror, then back out of the directory. mango2:/home/crcarle # umount /mnt umount: /mnt: device is busy umount: /mnt: device is busy mango2:/home/crcarle # umount -f /mnt umount2: Device or resource busy umount: /home/crcarle/cd-rw/download.backup.iso: not mounted umount: /mnt: Illegal seek umount2: Device or resource busy umount: /mnt: device is busy mango2:/home/crcarle # mount /dev/sda2 on / type ext3 (rw,acl,user_xattr) proc on /proc type proc (rw) tmpfs on /dev/shm type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) usbfs on /proc/bus/usb type usbfs (rw) /home/crcarle/cd-rw/download.backup.iso on /mnt type iso9660 (rw,loop=/dev/loop0) Clearly it is still mounted, and won't unmount. This works, but shouldn't be needed: mango2:/home/crcarle # umount -l /mnt This really bugs me, and it happens with ISO images, NFS mounts, etc. What is wrong here? Thanks for input. Good daY! -- ____________________________________ Christopher R. Carlen Principal Laser/Optical Technologist Sandia National Laboratories CA USA crcarle@sandia.gov
On Thursday 05 August 2004 19:40, Christopher Carlen wrote: > Hi: > > It seems with Suse 9.1 that anytime I mount something (as root) I cannot > unmount it. > > For example: > > mango2:/home/crcarle # mount -o loop cd-rw/download.backup.iso /mnt > > Then view in Konqueror, then back out of the directory. > > mango2:/home/crcarle # umount /mnt > umount: /mnt: device is busy > umount: /mnt: device is busy > mango2:/home/crcarle # umount -f /mnt > umount2: Device or resource busy > umount: /home/crcarle/cd-rw/download.backup.iso: not mounted > umount: /mnt: Illegal seek > umount2: Device or resource busy > umount: /mnt: device is busy > mango2:/home/crcarle # mount > /dev/sda2 on / type ext3 (rw,acl,user_xattr) > proc on /proc type proc (rw) > tmpfs on /dev/shm type tmpfs (rw) > devpts on /dev/pts type devpts (rw,mode=0620,gid=5) > none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) > usbfs on /proc/bus/usb type usbfs (rw) > /home/crcarle/cd-rw/download.backup.iso on /mnt type iso9660 > (rw,loop=/dev/loop0) > > Clearly it is still mounted, and won't unmount. > > This works, but shouldn't be needed: > > mango2:/home/crcarle # umount -l /mnt > > This really bugs me, and it happens with ISO images, NFS mounts, etc. > > What is wrong here? > > Thanks for input. > > Good daY! 1. Make certain you don't have a file manager open to view the ISO 2. Make certain you don't have the cli looking at the ISO's innards 3. lsof /mnt/4. kill I'm not being cute, here. I can't count the # of times I wondered why I couldn't umount ...and discovered I either had konqueror open in the device or the cli sitting in the innards of the CD or whatever I was looking at. HTH... -- ...CH "The more they over-think the plumbing, the easier it is to stop up the drain." Scotty
C Hamel wrote:
1. Make certain you don't have a file manager open to view the ISO 2. Make certain you don't have the cli looking at the ISO's innards 3. lsof /mnt/<ISO image> 4. kill <pid>
I'm not being cute, here. I can't count the # of times I wondered why I couldn't umount ...and discovered I either had konqueror open in the device or the cli sitting in the innards of the CD or whatever I was looking at.
HTH...
Thanks for the reply. I understand. It's like "is it plugged in?" which is always pertinant. The reason why I asked was that I had made quite sure to back out of the ISO, or NFS mounts before attempting to unmount. Ack!!! Now I'm sitting here trying it in another environment, unmounting a couple NFS shares and it's working. Argh! Oh well. Thanks for the tip about lsof. -- _____________________ Christopher R. Carlen crobc@earthlink.net SuSE 9.1 Linux 2.6.5
On Sunday 08 August 2004 12:00, Chris Carlen wrote: <SNIP>
Thanks for the reply.
I understand. It's like "is it plugged in?" which is always pertinant.
The reason why I asked was that I had made quite sure to back out of the ISO, or NFS mounts before attempting to unmount.
Ack!!! Now I'm sitting here trying it in another environment, unmounting a couple NFS shares and it's working.
Argh!
Oh well. Thanks for the tip about lsof. NP... been there & done that. Someone else on this list pointed out the lsof & bailed me out. ;-) -- ...CH "Home is the place you can scratch where it itches."
participants (3)
-
C Hamel
-
Chris Carlen
-
Christopher Carlen