eject dvd/cd

does someone knows how to eject a dvd/cd device?
thx

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

it sure does, thx a lot