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 was using Ubuntu 10.04 I used the command eject -i 1 to prevent the CD drawer being opened when the button was pressed. Now I have upgraded to Ubuntu 11.10 this command no longer works. It gives the same output as it did under 10.04:

colin@ubuntu-11-10:~$ eject -i 1
CD-Drive may NOT be ejected with device button

but the CD drawer opens anyway when you press the button.

Is there a way I can fix this command or another way to stop the drawer opening?

share|improve this question
The reason I like to stop the drawer opening is because I have small children playing in the room, and they like to press buttons. They've already broken two CD drives by snapping the tray off. I've also disconnected the reboot button for the same reason. – Colin Pickard Mar 9 '12 at 14:31
I understand you ;-) I use this for lock my laptop's cd-rom – Alessio Mar 9 '12 at 14:45
is My answer enough forma you? – Alessio Mar 10 '12 at 13:51

It seems a bug. I confirm this, eject lock doesn't works yet. Add your info to this and contribute:

share|improve this answer

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.