Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] 4 machines - no /dev/cdrom or /dev/dvd anymore Mark Knecht <markknecht@×××××.com>