Here's something that usually, but not always, works. It's a command called "fuser". Open a console and su to root. To see what is tying up your CD drive run:
# fuser -vm <insert mount point for cd drive>
For me that's:
# fuser -vm /mnt/cdrom
You will get a printout of the processes using the device with the PID number of each process. You can then kill the process by running:
# kill <insert PID>
There's even a shorter way though. If you run:
# fuser -km /mnt/cdrom
All processes accessing the cd drive will be killed. After killing the processes tying up the drive, be sure to unmount the drive in your console:
# umount /mnt/cdrom
You should then be able to get the cd out of the drive. For more info on fuser, see man fuser.
|