Re: Locking CD tray w/o opening device

From: Austin Gonyou (
Date: Tue Jun 11 2002 - 00:00:45 EST

You could echo "1" >/proc/sys/dev/cdrom/lock

If you do this, even when a cd is *not* in the drive it will be locked.
For information like this, it might be best to open xchat, and head to and join #linuxhelp. This is a good question, just
perhaps not right for the lkml?


On Mon, 2002-06-10 at 22:28, Hank Leininger wrote:
> On 2002-06-11, Nathan Neulinger <> wrote:
> > Is there any straightforward way of disabling the buttons on the CD and
> > locking all the time? I'm not averse to an ugly hack to 2.4.18+ source
> > if necessary.
> I'm not sure exactly what you mean. If there is a CD in the drive and
> mounted, the eject button should be software-locked. Do you mean that this
> does not happen for you? ...As long as it does, a stupid workaround would
> be "leave a CD in the drive mounted all the time".

Austin Gonyou <>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:20 EST