1 |
I think I touched on this a couple of weeks ago but never had time to |
2 |
dig in. At that time I thought this problem was only on one machine |
3 |
but now I see it's on every machine I've looked at this morning. Not a |
4 |
single machine has /dev/cdrom anymore, nor /dev/dvd or any of the |
5 |
other incantations that have existed forever. |
6 |
|
7 |
First, this is udev doing (or not doing) this, correct? |
8 |
|
9 |
As shown below hwinfo see the cdrom drive, and there are long existing |
10 |
udev rules that appear to want to create the devices. These rules have |
11 |
worked in the past but don't now. |
12 |
|
13 |
Are others running Gentoo stable, and in this case udev-171-r9, seeing |
14 |
this problem? |
15 |
|
16 |
Anyone recognize what's wrong with the udev rules below, or does udev |
17 |
no longer generate these devices at all? I understand that the |
18 |
70-persistent-net.rules stuff has been 'removed'. Is this true for CDs |
19 |
also or have I botched something up on all these machines? |
20 |
|
21 |
Thanks in advance and please ask me to post anything else required. |
22 |
I've gone through the latest Gentoo install docs and don't see that |
23 |
I'm doing anything other than what they tell me to do but with udev in |
24 |
such a state of flux I've obviously missed something. |
25 |
|
26 |
Thanks, |
27 |
Mark |
28 |
|
29 |
c2stable rules.d # hwinfo --cdrom |
30 |
67: SCSI a00.0: 10602 CD-ROM (DVD) |
31 |
[Created at block.249] |
32 |
Unique ID: KD9E.QuQg_05Xv13 |
33 |
Parent ID: w7Y8.UKoiXLHVNY4 |
34 |
SysFS ID: /class/block/sr0 |
35 |
SysFS BusID: 10:0:0:0 |
36 |
SysFS Device Link: |
37 |
/devices/pci0000:00/0000:00:1f.2/ata11/host10/target10:0:0/10:0:0:0 |
38 |
Hardware Class: cdrom |
39 |
Model: "Optiarc DVD RW AD-7241S" |
40 |
Vendor: "Optiarc" |
41 |
Device: "DVD RW AD-7241S" |
42 |
Revision: "1.03" |
43 |
Driver: "ata_piix", "sr" |
44 |
Driver Modules: "ata_piix" |
45 |
Device File: /dev/sr0 (/dev/sg2) |
46 |
Device Files: /dev/sr0, /dev/scd0, /dev/disk/by-id/ata-Optiarc_DVD_RW_AD-7241S |
47 |
Device Number: block 11:0 (char 21:2) |
48 |
Features: CD-R, CD-RW, DVD, DVD-R, DVD-RW, DVD-R DL, DVD+R, DVD+RW, |
49 |
DVD+R DL, DVD-RAM, MRW, MRW-W |
50 |
Drive status: no medium |
51 |
Config Status: cfg=new, avail=yes, need=no, active=unknown |
52 |
Attached to: #25 (IDE interface) |
53 |
Drive Speed: 48 |
54 |
|
55 |
|
56 |
|
57 |
c2stable rules.d # cat 70-persistent-cd.rules |
58 |
# This file was automatically generated by the /lib64/udev/write_cd_rules |
59 |
# program, run by the cd-aliases-generator.rules rules file. |
60 |
# |
61 |
# You can modify it, as long as you keep each rule on a single |
62 |
# line, and set the $GENERATED variable. |
63 |
|
64 |
# DVD_RW_AD-7241S (pci-0000:00:1f.2-scsi-0:0:0:0) |
65 |
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", |
66 |
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrom", |
67 |
ENV{GENERATED}="1" |
68 |
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", |
69 |
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrw", |
70 |
ENV{GENERATED}="1" |
71 |
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", |
72 |
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvd", |
73 |
ENV{GENERATED}="1" |
74 |
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", |
75 |
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvdrw", |
76 |
ENV{GENERATED}="1" |
77 |
|
78 |
# Virtual_Cdrom (pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:1) |
79 |
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", |
80 |
ENV{ID_SERIAL}=="BUFFALO_Virtual_Cdrom_00101007000912560-0:1", |
81 |
SYMLINK+="cdrom1", ENV{GENERATED}="1" |
82 |
|
83 |
# USB-SATA_Bridge (pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:1) |
84 |
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", |
85 |
ENV{ID_SERIAL}=="BUFFALO_USB-SATA_Bridge_00101007000912560", |
86 |
SYMLINK+="cdrom2", ENV{GENERATED}="1" |
87 |
|
88 |
c2stable rules.d # |
89 |
|
90 |
|
91 |
mark@c2stable ~ $ cat /etc/fstab |
92 |
# /etc/fstab: static file system information. |
93 |
# |
94 |
# noatime turns off atimes for increased performance (atimes normally aren't |
95 |
# needed; notail increases performance of ReiserFS (at the expense of storage |
96 |
# efficiency). It's safe to drop the noatime options if you want and to |
97 |
# switch between notail / tail freely. |
98 |
# |
99 |
# The root filesystem should have a pass number of either 0 or 1. |
100 |
# All other filesystems should have a pass number of 0 or greater than 1. |
101 |
# |
102 |
# See the manpage fstab(5) for more information. |
103 |
# |
104 |
|
105 |
# <fs> <mountpoint> <type> <opts> |
106 |
<dump/pass> |
107 |
|
108 |
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. |
109 |
LABEL=boot /boot ext2 noauto,noatime 1 2 |
110 |
#/dev/md126 / ext3 noatime 0 1 |
111 |
LABEL=RAID1root / ext3 noatime 0 1 |
112 |
|
113 |
LABEL=swapA none swap sw 0 0 |
114 |
LABEL=swapB none swap sw 0 0 |
115 |
LABEL=swapC none swap sw 0 0 |
116 |
|
117 |
/dev/cdrom /mnt/cdrom auto noauto,ro,users 0 0 |
118 |
|
119 |
/dev/md6 /backups ext3 noauto,rw,users 0 0 |
120 |
|
121 |
LABEL=VirtualMachines /VirtualMachines ext3 |
122 |
auto,rw,users 0 1 |
123 |
LABEL=ExtServerBackup /mnt/ExtServerBackup ext3 |
124 |
noauto,rw,users 0 0 |
125 |
|
126 |
#LABEL=VideoLib /mnt/VideoLib ext3 |
127 |
auto,rw,users 0 1 |
128 |
LABEL=VideoLib2 /mnt/VideoLib ext4 |
129 |
auto,rw,users 0 1 |
130 |
#LABEL=VideoLib2 /mnt/VideoLib2 ext4 |
131 |
auto,rw,users 0 1 |
132 |
LABEL=fastVM /mnt/fastVM ext4 |
133 |
auto,rw,discard,users 0 1 |
134 |
|
135 |
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for |
136 |
# POSIX shared memory (shm_open, shm_unlink). |
137 |
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will |
138 |
# use almost no memory if not populated with files) |
139 |
shm /dev/shm tmpfs |
140 |
nodev,nosuid,noexec 0 0 |
141 |
tmpfs /var/tmp/portage tmpfs size=8G |
142 |
0 0 |
143 |
|
144 |
|
145 |
#Other things currently unused but still hanging around... |
146 |
LABEL=extboot /mnt/disasterROOT ext2 |
147 |
noauto,rw,users 0 0 |
148 |
LABEL=extroot /mnt/disasterROOT ext3 |
149 |
noauto,rw,users 0 0 |
150 |
LABEL=extpackages /mnt/disasterROOT ext3 |
151 |
noauto,rw,users 0 0 |
152 |
LABEL=exthome /mnt/disasterROOT ext3 |
153 |
noauto,rw,users 0 0 |
154 |
LABEL=extVM /mnt/disasterROOT ext3 |
155 |
noauto,rw,users 0 0 |
156 |
LABEL=DirectVMBackup /mnt/DirectVMBackup ext3 |
157 |
noauto,rw,users 0 0 |
158 |
|
159 |
mark@c2stable ~ $ |