On Mon, Aug 28 2000, Rene Mayrhofer wrote:
> I already tried to do so, but I could not find a way.to lock the CD-ROM
> tray on my (SCSI DVD) CD-ROM drive after it has been mounted with the door
> not being lock. How can this be done ?
>
> 'setcd -l1' does not work
I don't know setcd, but issuing a CDROM_LOCKDOOR ioctl with arg 1
will lock the door. Unmounting is a different issue, because currently
you can't do that if the drive is opened more than once (which it will
be, mount + locking program). I guess we could work around this by allowing
root to unlock a busy drive, or some other hack like that.
> 'echo 1 > /proc/sys/dev/cdrom/lock' doesn't either
This just controls whether tray is locked when it is opened, so it has
no effect after the mount.
-- * Jens Axboe <axboe@suse.de> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:27 EST