On Sun, 2005-01-23 at 15:18 -0600, Gain Paolo Mureddu wrote:
How can you track down what process has locked the CD Rom
drive, when you have nothing opened showing its contents, nor a VT cd'ed
to it?!?!
What I would use is the fuser command in /sbin. More info can be found
by using man fuser or info fuser. The idea is this for a cdrom drive.
fuser -m /media/$MY_CD_ROM
This will list all associated PID that are accessing the file or file
system.
then an fuser -k -m /media/CDROM
will kill all the processes accessing the drive
Excellent!! Thanks for that info. I was looking for that for so much
time!