Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I press the button on the dvd player, it doesn't open.

If I press it during the boot (before starting ubuntu), it opens fine.

So, what I have to do to eject the dvd?

share|improve this question

Try this:


  1. sudo eject /dev/sr0
  2. file /dev/sr0
  3. sudo eject -i off
share|improve this answer

Some CD/DVD eject buttons send a signal, so that the operating system knows to eject. Some do not send a signal. So just pretend you do not have an ejection button on the device and use eject instead. If you are already on the command line...


or maybe you may need to specify the device:

eject /dev/sdc

If you are not on the command line, you might use [ALT]+[F2] to run a command... and the same commands would work that way, too.

share|improve this answer
eject works (I forgot to mention). Is it a wrong configuration? How to fix? – BЈовић Dec 3 '11 at 15:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.