like this:
# umount /media/usbdisk/
umount: /media/usbdisk: device is busy
use the lsof command to find out what programs are using what files:
EX: lsof +D /media/usb
Find the process that’s opened the file from a specified directory. You can use this if you cannot unmount a USB drive and want to know which file is open.
# lsof /media/usbdisk/

This shows that the programs bash and xmms are using
the device. For an even clearer picture, use the device
name rather than the mountpoint:
# lsof /dev/sdb1

You either can wait until those processes exit or terminate them manually.
OR you can Force umount when the device is busy fuser -km /mnt/hda2
No comments:
Post a Comment