2.4 -> 2.6 change: mount with disk not in drive semantics changed to something silly

Nix <[email protected]> Wed, 23 Feb 2005 23:29:10 +0000
Newsgroups gmane.linux.suse.packet-writing
Message-ID <[email protected]>
In the Linux 2.4 packet-writing patches, if you tried mounting a
packet-written CD when there was a disk in the drive but the drive was
ejected, it pulled the drive in and mounted it.

This is sane behaviour, I think.

In 2.6, that's changed: the first time you try to mount, you get

mount: /dev/pktcdvd/cdrw: can't read superblock

and the *second* time it works.


This, to put it mildly, inconsistent behaviour leads to insanity like
the following kludge in my backup scripts:

if ! mount /mnt/pcdrw 2>/dev/null && ! mount /mnt/pcdrw 2>/dev/null; then
    ... check and format the CD-RW ...
fi  


I imagine this is a bug.

Right?

-- 
> ...Hires Root Beer...
What we need these days is a stable, fast, anti-aliased root beer
with dynamic shading. Not that you can let just anybody have root.
 --- John M. Ford