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.
Thread beginning with comment 324212
To read all comments associated with this story, please click here.
fuser and screen collab
by parentaladvisory on Wed 23rd Jul 2008 17:16 UTC
Member since:

Liked the tips about 'fuser -k' and screen collaboration, got to say, IBM has much fun to read about Linux in their DeveloperWorks section...

Reply Score: 2

RE: fuser and screen collab
by nick8325 on Wed 23rd Jul 2008 18:01 in reply to "fuser and screen collab"
nick8325 Member since:

I read your comment, wondered what fuser -k was, and ran fuser -k / to find out. Got quite a surprise! ;)

Reply Parent Score: 1

RE: fuser and screen collab
by Doc Pain on Wed 23rd Jul 2008 21:48 in reply to "fuser and screen collab"
Doc Pain Member since:

Liked the tips about 'fuser -k' [...]

Regarding the trick "Unmounting the unresponsive DVD drive" I would suggest the -f flag to umount, and maybe the use of tools like camcontrol or atacontrol. I know the article is about Linux, but maybe there are similar tools.

# umount -f /media/dvd

would force the unmount of the media. If this is not sufficient, tools like camcontrol or atacontrol could be used to reset or reinitialize the ATAPI components (the drive or the whole bus) in order to clear any persisting drive locks.

Just an idea... :-)

Reply Parent Score: 1

RE[2]: fuser and screen collab
by Kokopelli on Thu 24th Jul 2008 00:11 in reply to "RE: fuser and screen collab"
Kokopelli 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

Bending Unit Member since:

A desktop operating system should not lock the drive in the first place. I have never liked that thing about unix-like systems. Removable devices have always been error prone on my Linux systems.

Reply Parent Score: 2