Weird effect of mount command in F23

2015-10-20 Thread Joachim Backes
Anybody has seen this in F23: 1. eject CD (/dev/sr0) 2. sudo mount /dev/sr0 /mnt then the CD will be inserted, but immeditaly after it inserted, an error message appears: mount: no medium found on /dev/sr0 A kernel problem? Kind regards Joachim Backes -- Fedora release 23 (Twenty Three)

Re: Weird effect of mount command in F23

2015-10-20 Thread Ed Greshko
On 10/20/2015 08:21 PM, Joachim Backes wrote: > Then how to check in a bash script when a CD is really mounted? Check the return code of the mount command? [root@meimei ~]# mount /dev/sr0 /mnt mount: no medium found on /dev/sr0 [root@meimei ~]# echo $? 32 [root@meimei ~]# mount /dev/sr0 /mnt

Re: Weird effect of mount command in F23

2015-10-20 Thread Ed Greshko
On 10/20/2015 07:53 PM, Joachim Backes wrote: > Anybody has seen this in F23: > > 1. eject CD (/dev/sr0) > 2. sudo mount /dev/sr0 /mnt > > then the CD will be inserted, but immeditaly after it inserted, an error > message appears: > > mount: no medium found on /dev/sr0 > > A kernel problem? > >

Re: Weird effect of mount command in F23

2015-10-20 Thread Joachim Backes
On 20.10.2015 14:06, Ed Greshko wrote: On 10/20/2015 07:53 PM, Joachim Backes wrote: Anybody has seen this in F23: 1. eject CD (/dev/sr0) 2. sudo mount /dev/sr0 /mnt then the CD will be inserted, but immeditaly after it inserted, an error message appears: mount: no medium found on /dev/sr0

Re: Weird effect of mount command in F23

2015-10-20 Thread Joachim Backes
On 20.10.2015 14:30, Ed Greshko wrote: On 10/20/2015 08:21 PM, Joachim Backes wrote: Then how to check in a bash script when a CD is really mounted? Check the return code of the mount command? [root@meimei ~]# mount /dev/sr0 /mnt mount: no medium found on /dev/sr0 [root@meimei ~]# echo $? 32

Re: Weird effect of mount command in F23

2015-10-20 Thread Joachim Backes
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

Re: Weird effect of mount command in F23

2015-10-20 Thread Richard Ryniker
>> I do not like to sacrifice well-defined, predictable behavior for >> convenience > >Convenience is what users need! > >> but others may argue this default behavior serves the >> greater good. > >What is the *greater good*? I think the perceived "good" is that users can load a disk and have a

Re: Weird effect of mount command in F23

2015-10-20 Thread Richard Ryniker
I suspect you suffer from software that wants to help you and "Do the right thing." 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

Re: Weird effect of mount command in F23

2015-10-20 Thread Gordon Messmer
On Tue, Oct 20, 2015 at 4:53 AM, Joachim Backes < joachim.bac...@rhrk.uni-kl.de> wrote: > 2. sudo mount /dev/sr0 /mnt > then the CD will be inserted, but immeditaly after it inserted, an error > message appears: > mount: no medium found on /dev/sr0 >

Re: Weird effect of mount command in F23

2015-10-20 Thread Chuck Anderson
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