Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: 4 machines - no /dev/cdrom or /dev/dvd anymore
Date: Tue, 08 Jan 2013 11:54:45
Message-Id: 50EC089D.40804@gmail.com
In Reply to: Re: [gentoo-user] Re: 4 machines - no /dev/cdrom or /dev/dvd anymore by Mick
1 Mick wrote:
2 > On Monday 07 Jan 2013 07:35:32 Dale wrote:
3 >
4 >> I think you misunderstand or I didn't make myself clear. I'm not saying
5 >> it was udev that did this. I am pretty sure it was the kernel. All
6 >> this happened when people with older IDE drives, myself included on my
7 >> old machine, had to switch to the new drivers and devices. Before the
8 >> change, old IDE drives and CD/DVD drives were given hd* devices and udev
9 >> made a link to that with /dev/cdrom or dvd or whatever for optical
10 >> devices which is what you seem to expect now. The reason udev did that
11 >> was for it to be consistent which I have no problem with . When the
12 >> kernel folks changed this, they also changed it from /dev/cdrom and
13 >> /dev/dvd to /dev/sr0. From my understanding, all optical devices such
14 >> as CD and DVD readers/burners are supposed to be sr0. I know k3b
15 >> updated theirs too. I seem to recall I had to run a unstable version
16 >> for a bit because the older version didn't have the code to see sr*
17 >> devices.
18 >>
19 >> I never said anything was broke, just that it was changed. There was
20 >> several things that was changed at about the same time that were related
21 >> and this was just one of them. Another was the change from /dev/hdXX to
22 >> /dev/sdXX for ALL hard drives. This change happened even if you was
23 >> using the old IDE drives. As I understand it, /dev/hdxx is no longer
24 >> supported on current kernels. All hard drives are /dev/sdxx and optical
25 >> drives are /dev/sr0(1,2,3,4 etc).
26 >>
27 >> Also, I didn't remove anything. It was changed by the kernel which also
28 >> lead to udev changing what it did. Again, as much as I dislike what
29 >> udev is planning, I never said udev did this one. I'm pretty sure this
30 >> was all started with the kernel devs. The udev folks just followed along.
31 >>
32 >> The biggest thing I recall is everyone with IDE drives having to update
33 >> the kernel config, edit fstab and grub or lilo before rebooting. This
34 >> was discussed on this list and I don't recall much fuss except for
35 >> having to change it and update everything. It was sort of a one time
36 >> thing and had a long term goal. All hard drives are sdxx and optical
37 >> devices are srx. All this happened when I was on my old rig which was
38 >> at least a few years ago.
39 >>
40 >> Does that make more sense now?
41 >>
42 >> Dale
43 >>
44 >> :-) :-)
45 >
46 > I think that you are conflating two issues which are separate in terms of
47 > chronology at least. Years ago we moved to libata and hdX changed to sdX.
48 > The udev confguration was updated at the time to link /dev/cd* and
49 /dev/dvd*
50 > to srX.
51 >
52 > More recently, the udev rules nomenclature changed. The udev
53 persistent-cd
54 > rules however was not changed. I moved it, remerged stable udev and
55 the file
56 > was not recreated. So something in udev has changed and it no longer
57 > generates the persistent-cd rules.
58 >
59 >
60 > BTW, pressing the touch sensitive button on the laptop to eject the CD
61 won't
62 > work, neither will typing eject in a terminal:
63 >
64 > $ eject
65 > eject: tried to use `/mnt/cdrom' as device name but it is no block device
66 > eject: unable to find or open device for: `cdrom'
67 >
68 >
69 > So, eject is still looking for cdrom ...
70 >
71 > Either all commands and legacy apps should update themselves, or I better
72 > follow Mark's suggestion?
73
74
75 According to what I found, both changes were done at the same time.
76 Link below is one place that I found saying both things were being
77 changed in the kernel at the same time. There are others but anyway:
78
79 http://lkml.indiana.edu/hypermail/linux/kernel/0608.1/0806.html
80
81 There may have been other changes more recent in udev but if so, I
82 missed them since this changed for me, and according to the list others
83 too, years ago. I was on my old rig so it had to be several years ago
84 since I have had my new rig a couple years and never had to deal with it
85 during the install of Gentoo on it.
86
87 I do think it's helpful for some to have a consistent link like cdrom or
88 dvd. It appears someone else thinks people that find it helpful need to
89 add their own rule. Either way, it can be made to work.
90
91 Just trying to provide info based on my search results.
92
93 Dale
94
95 :-) :-)
96
97 --
98 I am only responsible for what I said ... Not for what you understood or
99 how you interpreted my words!