[JT] Jochen Topf's Blog
Mon 2012-01-30 19:30

Locking CDROM/DVD eject button on Linux

In recent Linux kernels something changed in the way CDROM/DVD ejects are handled. On my notebook with current Ubuntu (11.10) the result was that “eject -i” does not work any more to block the physical eject button. Thats very annoying as I kept hitting it accidentally. But I found a way to get it working again: Copy /lib/udev/rules.d/60-cdrom_id.rules to /etc/udev/rules.d and comment out the line with DISC_EJECT_REQUEST. Now “eject -i” works again.

Tags: linux