Linked by Amjith Ramanujam on Wed 23rd Jul 2008 16:34 UTC, submitted by LinucksGirl
Permalink for comment 324275
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.





Member since:
2005-07-06
I usually prefer doing a "lsof |grep [mount point]" to give me an idea of who or what is using it. fuser does not do as good a job in my experience, which is admittedly me trying fuser after reading the article.
Taking as an example playing a movie file from a mounted USB hard drive. fuser /dev/sdd1 or /dev/sdd or /media/disk will generate no output. It will only generate list the culprit if you do do "fuser [file that is open]".
You can force unmount but I find 99% of the time you can cleanly do so once you figure out what is preventing the umount.
NOTE: "lsof +D [mount point]" does the same thing, piping to grep is habit
Edited 2008-07-24 00:30 UTC