11-05-2008
6,384,
2,214
Join Date: May 2005
Last Activity: 28 October 2019, 4:59 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 6,384
Thanks Given: 143
Thanked 2,214 Times in 1,548 Posts
Hmmm....
Ever tried the "cdeject" command to eject a cd? See the man page on how to use it.
Save for this (obvious) solution there might be several problems which could prevent a CD drive to eject its content:
1. CD is still mounted
If the filesystem on the medium is still mounted the drive won't eject it. Umount it first (man umount), then eject it.
2. Unable to umount
In case you already tried 1. and didn't succeed in umounting it (probably with a "device busy" error): search for processes still accessing the filesystem and kill them. Also often seen: if your current path is somewhere on the CD-ROM drive your own login shell is the process "accessing" the filesystem - do a "cd /somewhere/else" to remedy that, tehn umount again.
3. Hardware broken
Sometimes (very rarely, but it happens) the drives hardware is simply broken (or the drive been cut off from power) and it won't eject the medium therefore. Unbend a paper-clip (or use some similar device) and push into the tiny hole in front of the drive. This will unlock the spring inside and eject the drawer.
I hope this helps.
bakunin