[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: umount partition is busy



Luis R Finotti wrote:
Hugo Vanwoerkom wrote:
Hi,

I do:

umount /hda14

and get:

umount: /hda14: device is busy
umount: /hda14: device is busy


Is there a way of finding out *why* it is busy? Obviously it is linked to someplace, but where?

Thanks!

H

You can try "lsof" to find what is keeping the device busy:

debian[~]% umount dvd
umount: /media/cdrom0: device is busy
umount: /media/cdrom0: device is busy

debian[~]% lsof /media/cdrom0
lsof: WARNING: can't stat() ext3 file system /dev/.static/dev
      Output information may be incomplete.
COMMAND  PID    USER   FD   TYPE DEVICE      SIZE NODE NAME
bash     455 finotti  cwd    DIR   22,0      2048 1408 /media/cdrom0
mplayer 1010 finotti  cwd    DIR   22,0      2048 1408 /media/cdrom0
mplayer 1010 finotti 4r REG 22,0 461630064 1416 /media/cdrom0/Brecker Brothers Band - Northsea Jazz Festival 1992.mpg

You can then try to kill the process or deal with it:

debian[~]% ps aux | grep mplayer
finotti 1010 9.1 1.4 37960 14604 pts/5 S+ 21:10 1:12 mplayer Brecker Brothers Band - Northsea Jazz Festival 1992.mpg


HTH,

Luis

P.S.: watching the Brecker Brothers is a good reason to keep a device busy. ;-)



Bingo Luis!

lsof /hda14

lsof: WARNING: can't stat() ext2 file system /dev/.static/dev
      Output information may be incomplete.
COMMAND    PID USER  FD   TYPE DEVICE   SIZE   NODE NAME
thunderbi 7382 hugo mem REG 3,14 249736 639588 /hda14/backup.files/fromhd/usr/local/thunderbird/libnssckbi.so seamonkey 8363 hugo mem REG 3,14 290582 721775 /hda14/backup.files/fromhd/usr/local/seamonkey1.0/libnssckbi.so

Now to Brecker Brothers!

Thanks!

H



















Reply to: