lkml.org 
[lkml]   [2000]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Bug: remounting CD-ROM drives does not lock/unlock drive
Jens Axboe wrote:
>
> On Sun, Aug 27 2000, Rene Mayrhofer wrote:
> > > options cdrom lockdoor=0
> >
> > This has the same effect as doing a 'setcd -l0' before mounting the CD-ROM
> > disk. But this way, it is never locked. I need to have the CD-ROM drive
> > locked during normal operation (ejecting the root filesystem is not very
> > nice :) ), but unlocked immediately before the reboot is done.
> > I was unable to find a way to unlock the tray *after* the disk has been
> > mounted. Is there any or do I need to patch the kernel for the Gibraltar
> > project (other bootable CD-ROM projects will definitely need this too) ?
>
> lockdoor=0 will indeed keep the tray unlocked, unless explicityly
> locked. And I think this is what Erik means -- don't automatically
> lock the door, but do it from your init scripts. Then doing an
> unlock on ro remount is simple.
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
'echo 1 > /proc/sys/dev/cdrom/lock' doesn't either

On my system, the locking of the CD-ROM drive seems to be only done during
mounting of the media. I found no way to change locking status afterwards (only
at the next mount, or unlocking it with unmount when it has been locked).

Thanks for all your help,
Rene
-
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.084 / U:1.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site