Gentoo Archives: gentoo-user

From: Michael Sullivan <msulli1355@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How to get /dev/cdrom
Date: Wed, 12 Jan 2011 16:48:21
Message-Id: 1294850776.16101.55.camel@camille.espersunited.com
In Reply to: [gentoo-user] Re: How to get /dev/cdrom by nunojsilva@ist.utl.pt (Nuno J. Silva)
1 On Wed, 2011-01-12 at 16:31 +0000, Nuno J. Silva wrote:
2 > Michael Sullivan <msulli1355@×××××.com> writes:
3 >
4 > > OK, for several years I have not had a /dev/cdrom. My workstation has
5 > > an internal cd-rom drive, which gets mapped to /dev/hda, and an external
6 >
7 > If you're using a recent kernel, it's probably udev which refuses to
8 > process devices under the old ATA driver.
9 >
10 > (I don't know if it *exactly* refuses, or if it's something else, but
11 > the final result is what you see, no /dev/{cdrom,cdrw,...} link)
12 >
13 >
14 > > DVD+R drive, which is mapped to /dev/sr0. When I look
15 > > at /etc/udev/rules.d/70-persistent-cd.rules I see:
16 > >
17 > > camille rules.d # cat 70-persistent-cd.rules
18 > > # LITE-ON_COMBO_SOHC-5236K (pci-0000:00:1f.1-ide-0:0)
19 > > ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:0", SYMLINK
20 > > +="cdrom", ENV{GENERATED}="1"
21 > ...
22 > > # LITE-ON_COMBO_SOHC-5236K (pci-0000:00:1f.1-ide-0:0)
23 > > ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:0", SYMLINK
24 > > +="cdrom1", ENV{GENERATED}="1"
25 > ...
26 > > # LITE-ON_COMBO_SOHC-5236K (pci-0000:00:1f.1)
27 > > SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
28 > > ENV{ID_PATH}=="pci-0000:00:1f.1", SYMLINK+="cdrom5", ENV{GENERATED}="1"
29 > >
30 > > LITE-ON_COMBO_SOHC-5236K is my internal drive, which SHOULD be mapped
31 > > to /dev/cdrom. But it's not:
32 > >
33 > > camille rules.d # ls /dev/cdrom
34 > > ls: cannot access /dev/cdrom: No such file or directory
35 >
36 > Check also /dev/cdrom*. Maybe it got another name, as there are at least
37 > three rules to symlink that drive (if it matched all rules, udev would
38 > create the three links, but the third rule looks different).
39 >
40 > > Why is it not being mapped correctly? Is the rule above not correct?
41 > > I've tried to read tutorials about writing udev rules, but the example
42 > > rules in the tutorials look nothing like the above rules, and I didn't
43 > > write those. I think they were created when udev was installed...
44 >
45
46
47 camille ~ # ls -l /dev/cdrom*
48 ls: cannot access /dev/cdrom*: No such file or directory
49
50
51 I need /dev/hda to be /dev/cdrom because I cannot use CD player programs
52 unless it has that name. Of course, I can manually create a symlink
53 from /dev/cdrom to /dev/hda every time I reboot, but I shouldn't have to
54 do that...