Talk:TIP Script to unmount Busy Devices

From Gentoo Linux Wiki

Jump to: navigation, search

how is about?

sync
umount /mnt/ipod

[edit] LSOF - nifty little tool :-)

LSOF can be used to figure out what programs are still using a particular device

Code: Example

/usr/sbin/lsof | grep /mnt/ipod | awk '{ print("PID: ["$2"] COMMAND: ["$1"] USER: ["$3"]") }'

[edit] fuser param missing

On my gentoo box your call to fuser does not work unless you also include -m parameter.

Personal tools