Linked by Amjith Ramanujam on Wed 23rd Jul 2008 16:34 UTC, submitted by LinucksGirl
Linux In this article, learn how to be a more productive Linux systems administrator. These 10 essential tricks will lead you on your way to being one powerful Linux systems administrator. Learn about SSH tunnels, VNC, password recovery, console spying, and more. Examples accompany each trick, so you can duplicate them on your own systems.
Permalink for comment 324275
To read all comments associated with this story, please click here.
RE[2]: fuser and screen collab
by Kokopelli on Thu 24th Jul 2008 00:11 UTC in reply to "RE: fuser and screen collab"
Member since:

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

Reply Parent Score: 2