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


















--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • [SLE] Unclean shutdown SuSE 9.2
    ... I am getting an un-clean shutdown with subsequent hang on on a SuSE V9.2 ... umount: /: device busy ... Oops umount failed trying to mount read only ...
    (SuSE)
  • Re: umount partition is busy
    ... umount: /hda14: device is busy ... It lists mounted mount points. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: umount partition is busy
    ... umount: /hda14: device is busy ... watching the Brecker Brothers is a good reason to keep a device busy. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • [SLE] Cant unmount anything
    ... It seems with Suse 9.1 that anytime I mount something I cannot ... umount: /mnt: device is busy ... and won't unmount. ...
    (SuSE)
  • Re: umount partition is busy
    ... umount: /hda14: device is busy ... It lists mounted mount points. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)