1 |
Michael Sullivan <msulli1355@×××××.com> writes: |
2 |
|
3 |
> OK, for several years I have not had a /dev/cdrom. My workstation has |
4 |
> an internal cd-rom drive, which gets mapped to /dev/hda, and an external |
5 |
|
6 |
If you're using a recent kernel, it's probably udev which refuses to |
7 |
process devices under the old ATA driver. |
8 |
|
9 |
(I don't know if it *exactly* refuses, or if it's something else, but |
10 |
the final result is what you see, no /dev/{cdrom,cdrw,...} link) |
11 |
|
12 |
|
13 |
> DVD+R drive, which is mapped to /dev/sr0. When I look |
14 |
> at /etc/udev/rules.d/70-persistent-cd.rules I see: |
15 |
> |
16 |
> camille rules.d # cat 70-persistent-cd.rules |
17 |
> # LITE-ON_COMBO_SOHC-5236K (pci-0000:00:1f.1-ide-0:0) |
18 |
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:0", SYMLINK |
19 |
> +="cdrom", ENV{GENERATED}="1" |
20 |
... |
21 |
> # LITE-ON_COMBO_SOHC-5236K (pci-0000:00:1f.1-ide-0:0) |
22 |
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:0", SYMLINK |
23 |
> +="cdrom1", ENV{GENERATED}="1" |
24 |
... |
25 |
> # LITE-ON_COMBO_SOHC-5236K (pci-0000:00:1f.1) |
26 |
> SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", |
27 |
> ENV{ID_PATH}=="pci-0000:00:1f.1", SYMLINK+="cdrom5", ENV{GENERATED}="1" |
28 |
> |
29 |
> LITE-ON_COMBO_SOHC-5236K is my internal drive, which SHOULD be mapped |
30 |
> to /dev/cdrom. But it's not: |
31 |
> |
32 |
> camille rules.d # ls /dev/cdrom |
33 |
> ls: cannot access /dev/cdrom: No such file or directory |
34 |
|
35 |
Check also /dev/cdrom*. Maybe it got another name, as there are at least |
36 |
three rules to symlink that drive (if it matched all rules, udev would |
37 |
create the three links, but the third rule looks different). |
38 |
|
39 |
> Why is it not being mapped correctly? Is the rule above not correct? |
40 |
> I've tried to read tutorials about writing udev rules, but the example |
41 |
> rules in the tutorials look nothing like the above rules, and I didn't |
42 |
> write those. I think they were created when udev was installed... |
43 |
|
44 |
-- |
45 |
Nuno J. Silva |
46 |
gopher://sdf-eu.org/1/users/njsg |