Weird effect of mount command in F23

Chuck Anderson cra at WPI.EDU
Tue Oct 20 23:05:39 UTC 2015


On Tue, Oct 20, 2015 at 07:12:36PM +0200, Joachim Backes wrote:
> On 20.10.2015 17:41, Richard Ryniker wrote:
> >I suspect you suffer from software that wants to help you and "Do the
> >right thing."
> >
> 
> Exactly. When mounting HD's, *one* mount command is enough for
> achieving this, but for removable optical media (like CD's), I need
> at least 2 commands, if the media is not loaded. That's what I don't
> understand.

Accessing the device node is apparently causing the tray to close.  Why
do you not close the tray first with the button on the drive before
trying the mount?

> >If you try to mount a device with no media, mount might simply fail (no
> >media present).  Instead, at least for optical drives, it presumes the
> >desired media might be available in the tray and requests the device to
> >load media, then tries again to mount a file system from this device.
> 
> This is exactly my question: why mount is able to load the media,
> but doesn't include it correctly into the filesystem?

It seems like it doesn't wait long enough for the tray to close before
giving up.

You can try closing the tray first with this command:

eject -t

>From man eject:

       -t, --trayclose
              With this option the drive is given a CD-ROM tray close command.
              Not all devices support this command.


and then do the mount, perhaps with a "sleep" in there:

eject -t
sleep 5
mount ...


More information about the test mailing list