public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Anthony D. Saxton" <lna@lvcm.com>
To: Giuliano Pochini <pochini@denise.shiny.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: I can eject a mounted CD
Date: Wed, 18 Apr 2001 01:42:57 -0700	[thread overview]
Message-ID: <3ADD5391.57CC6978@lvcm.com> (raw)
In-Reply-To: <3AD779CB.ED7C1656@denise.shiny.it> <3AD78C81.51D8ED35@lvcm.com> <3ADB4511.E3F6F6F1@denise.shiny.it>

Giuliano Pochini wrote:

> > > My fstab:
> > >
> > > /dev/cdrom              /mnt/cdrom              iso9660
> > > noauto,user,ro           0 0
> > > /dev/cdrom              /mnt/cdmac              hfs
> > > noauto,user,ro           0 0
> >
> > Change your fstab to read instead:
> >
> > /dev/cdrom        /mnt/cdrom        auto        noauto,user,ro    0 0
> >
> > And remove the other cdrom listing. This will allow mounting any
> > supported format and eliminate the duel support for one device.
>
> That's not the point. The kernel should not allow someone to
> eject a mounted media.
>
> Bye.

The kernel actually should allow a misconfigured system to behave as
configured. Basically, your /etc/fstab is telling the kernel that you have
two different devices occupying the same device address. In my case, I
have two cdrom drives. With the original configuration, either one would
mount to /mnt/cdrom. I changed /etc/fstab to identify the first drive as
being at /dev/scd0, mounted to /mnt/cdrom and the second at /dev/scd1,
mounted to /mnt/cd-r. Now I can have to independent drives. I could have
just as easily setup the fstab as above, but  I would not be able to use
both drives.

One cannot expect any program to behave properly when configured
improperly. Your kernel was behaving exactly as it had been programmed it
to.

Anthony D. Saxton
LnA Concepts


  parent reply	other threads:[~2001-04-18  8:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-13 22:12 I can eject a mounted CD Giuliano Pochini
     [not found] ` <3AD78C81.51D8ED35@lvcm.com>
2001-04-16 19:16   ` Giuliano Pochini
2001-04-17 20:50     ` Alan Cox
2001-04-18  7:25       ` Giuliano Pochini
2001-04-18  9:00         ` Tim Peeler
2001-04-18  9:17           ` Giuliano Pochini
2001-04-18 13:24             ` Jeremy Jackson
2001-04-18 12:23         ` Alan Cox
2001-04-18 12:25           ` Jens Axboe
2001-04-18 13:03           ` Giuliano Pochini
2001-04-18 13:06             ` Jens Axboe
2001-04-18 21:03               ` Guest section DW
2001-04-18 21:36                 ` Jens Axboe
2001-04-19  7:49                 ` Giuliano Pochini
2001-04-18  8:42     ` Anthony D. Saxton [this message]
2001-04-19 21:36 ` Tomas Jura
2001-04-20  7:49   ` Giuliano Pochini
     [not found]     ` <kara.2760-0.987788475@kara.hadess.net>
2001-04-20 17:41       ` Bastien Nocera

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=3ADD5391.57CC6978@lvcm.com \
    --to=lna@lvcm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lna@bigfoot.com \
    --cc=pochini@denise.shiny.it \
    /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