From: Jeremy Jackson <jerj@coplanar.net>
To: David Balazic <david.balazic@uni-mb.si>,
Per Erik Stendahl <PerErik@onedial.se>,
linux-kernel@vger.kernel.org
Subject: Re: Unmounting and ejecting the root fs on shutdown.
Date: Wed, 28 Feb 2001 22:33:44 -0500 [thread overview]
Message-ID: <3A9DC318.F4B3B95B@coplanar.net> (raw)
David Balazic wrote:
Per Erik Stendahl wrote :
> What I do know now is how to make the kernel not lock the CD in the
> first place. Simply ioctl(/dev/cdrom, CDROM_CLEAR_OPTIONS, CDO_LOCK)
> from /linuxrc in the initrd. This way I can remove the CD anytime
> I please which is enough for me. And I dont have to patch the
kernel.
Or : echo 0 > /proc/sys/dev/cdrom/lock
( I am not sure if this is the right filename )
Or run magicdev ;-)
This might save everyone some pain:
from hdparm(8) man page (mine has some format
bugs, but you get the picture)
-L Set the drive's doorlock flag. Setting this to
will lock the door mechanism of some removeable
hard drives (eg. Syquest, ZIP, Jazz..), and setting
it to maintains the door locking mechanism automat
ically, depending on drive usage (locked whenever a
filesystem is mounted). But on system shutdown,
this can be a nuisance if the root partition is on
a removeable disk, since the root partition is left
mounted (read-only) after shutdown. So, by using
this command to unlock the door -b after the root
filesystem is remounted read-only, one can then
remove the cartridge from the drive after shutdown.
you seem to be into reading the source (tm) so hdparm's
might be a good place to look (if it doesn't just work like it
says above)
next reply other threads:[~2001-03-01 3:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-01 3:33 Jeremy Jackson [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-03-01 8:47 Unmounting and ejecting the root fs on shutdown Per Erik Stendahl
2001-03-01 21:01 ` Jeremy Jackson
2001-02-28 18:07 David Balazic
2001-02-28 16:12 Per Erik Stendahl
2001-02-28 16:26 ` Mr. James W. Laferriere
2001-02-28 16:37 ` Miquel van Smoorenburg
2001-02-21 8:27 Per Erik Stendahl
2001-02-28 14:32 ` Mr. James W. Laferriere
2001-02-28 15:29 ` James A. Sutherland
2001-02-28 15:56 ` Mr. James W. Laferriere
2001-02-28 18:06 ` James A. Sutherland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A9DC318.F4B3B95B@coplanar.net \
--to=jerj@coplanar.net \
--cc=PerErik@onedial.se \
--cc=david.balazic@uni-mb.si \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox