Bug 162784 - /media mount points not in same order as /dev devices
/media mount points not in same order as /dev devices
Product: Fedora
Classification: Fedora
Component: hal (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: David Zeuthen
Depends On:
  Show dependency treegraph
Reported: 2005-07-08 12:47 EDT by John Reiser
Modified: 2013-03-05 22:43 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-07-08 13:21:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Reiser 2005-07-08 12:47:37 EDT
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):

How reproducible:

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.

Additional info:
Comment 1 David Zeuthen 2005-07-08 13:21:23 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.