Linked by Amjith Ramanujam on Wed 23rd Jul 2008 16:34 UTC, submitted by LinucksGirl
Thread beginning with comment 324212
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
RE: fuser and screen collab
by nick8325 on Wed 23rd Jul 2008 18:01
in reply to "fuser and screen collab"
RE: fuser and screen collab
by Doc Pain on Wed 23rd Jul 2008 21:48
in reply to "fuser and screen collab"
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... :-)
RE[2]: fuser and screen collab
by Kokopelli on Thu 24th Jul 2008 00:11
in reply to "RE: fuser and screen collab"
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
RE[2]: fuser and screen collab
by Bending Unit on Thu 24th Jul 2008 10:48
in reply to "RE: fuser and screen collab"







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