Red Hat Bugzilla – Bug 162784
/media mount points not in same order as /dev devices
Last modified: 2013-03-05 22:43:53 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4
Description of problem:
If there are two CD drives on one (E)IDE channel, then the mount name in /media does not correspond to the /dev name. For instance, I have a DVD-R on hdc and a CD-R on hdd. These appear in /dev as
$ ls -l /dev/cd*
lrwxrwxrwx 1 root root 3 Jul 8 06:42 /dev/cdrom -> hdc
lrwxrwxrwx 1 root root 3 Jul 8 06:42 /dev/cdrom1 -> hdd
lrwxrwxrwx 1 root root 3 Jul 8 06:42 /dev/cdwriter -> hdc
lrwxrwxrwx 1 root root 3 Jul 8 06:42 /dev/cdwriter1 -> hdd
but when I insert a DVD into hdc, it gets automounted as:
$ mount | grep hdc
/dev/hdc on /media/cdrecorder1 type iso9660 (ro,nosuid,nodev,_netdev,user=jreiser)
This creates confusion. The names should be in the same order, and it should be hdc first, then hdd. In the case above, the DVD should have been mounted on /media/cdrecorder (no trailing '1').
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Build a box with two CD devices on the same IDE channel.
2. Insert a disc on the IDE master device.
3. Check where it gets mounted.
Actual Results: The disk in the master device is mounted as /media/cdrecorder1, instead of as /media/cdrecorder.
Expected Results: The name for anything connected to the master device should come first, with no trailing '1' in its /media mount point.
Not a bug actually. Note that all this is subject to change for FC5 where we'll
be switching to a policy based mount wrapper, e.g. no /etc/fstab entries at all.