Gentoo Archives: gentoo-user

From: Bruce Hill <daddy@×××××××××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] udev update changed cd/dvd device name
Date: Mon, 19 Nov 2012 17:20:15
Message-Id: 20121119171839.GE8428@server
In Reply to: [gentoo-user] udev update changed cd/dvd device name by Mark Knecht
1 On Mon, Nov 19, 2012 at 07:59:34AM -0800, Mark Knecht wrote:
2 > Anyone else run into this problem with udev-171-r9? I updated
3 > yesterday and my CD/DVD, which has been /dev/cdrom1 since I built the
4 > machine 2 1/2 years ago, is now called /dev/scd0.
5 >
6 > Machine is x86_64, mostly stable.
7 >
8 > - Mark
9
10 mingdao@workstation ~ $ cat /etc/udev/rules.d/70-persistent-cd.rules
11 # This file was automatically generated by the /lib/udev/write_cd_rules
12 # program, run by the cd-aliases-generator.rules rules file.
13 #
14 # You can modify it, as long as you keep each rule on a single
15 # line, and set the $GENERATED variable.
16
17 # TSSTcorp_CDDVDW_SH-222AB (pci-0000:00:11.0-scsi-0:0:0:0)
18 SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.0-scsi-0:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
19 SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.0-scsi-0:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
20 SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.0-scsi-0:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
21 SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.0-scsi-0:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"
22
23 # TSSTcorp_CDDVDW_SH-222AB (pci-0000:00:11.0-scsi-3:0:0:0)
24 SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.0-scsi-3:0:0:0", SYMLINK+="cdrom1", ENV{GENERATED}="1"
25 SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.0-scsi-3:0:0:0", SYMLINK+="cdrw1", ENV{GENERATED}="1"
26 SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.0-scsi-3:0:0:0", SYMLINK+="dvd1", ENV{GENERATED}="1"
27 SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.0-scsi-3:0:0:0", SYMLINK+="dvdrw1", ENV{GENERATED}="1"
28
29 mingdao@workstation ~ $ ls -l /dev/cdrom*
30 lrwxrwxrwx 1 root root 3 Nov 19 05:05 /dev/cdrom1 -> sr0
31 mingdao@workstation ~ $ ls -l /dev/sr*
32 brw-rw---- 1 root cdrom 11, 0 Nov 19 05:05 /dev/sr0
33 mingdao@workstation ~ $ ls -l /dev/scd*
34 lrwxrwxrwx 1 root root 3 Nov 19 05:05 /dev/scd0 -> sr0
35 mingdao@workstation ~ $ cat /var/log/portage/elog/sys-fs\:udev-171-r9\:20121119-131656.log
36 INFO: setup
37 Package: sys-fs/udev-171-r9
38 Repository: gentoo
39 Maintainer: udev-bugs@g.o
40 USE: amd64 elibc_glibc kernel_linux multilib rule_generator userland_GNU
41 FEATURES: sandbox
42 Package: sys-fs/udev-171-r9
43 Repository: gentoo
44 Maintainer: udev-bugs@g.o
45 USE: amd64 elibc_glibc kernel_linux multilib rule_generator userland_GNU
46 FEATURES: sandbox
47 Determining the location of the kernel source code
48 ERROR: setup
49 Unable to find kernel sources at /usr/src/linux
50 INFO: setup
51 Please make sure that /usr/src/linux points at your running kernel,
52 (or the kernel you wish to build against).
53 Alternatively, set the KERNEL_DIR environment variable to the kernel sources location
54 WARN: setup
55 Unable to calculate Linux Kernel version for build, attempting to use running version
56 INFO: setup
57 Found kernel object directory:
58 /home/mingdao/kernel/linux-3.0
59 Found sources for kernel version:
60 3.0.51
61 Checking for suitable kernel configuration options...
62 WARN: setup
63
64 udev-171 does not support Linux kernel before version 2.6.32!
65 INFO: setup
66 Your kernel version (3.0.51) is new enough to run udev-171 reliably.
67 Found kernel object directory:
68 /home/mingdao/kernel/linux-3.0
69 Found sources for kernel version:
70 3.0.51
71 INFO: prepare
72 Applying udev-171-path_id-skip-ATA-transport.patch ...
73 Applying various patches (bugfixes/updates) ...
74 0001-Revert-udevd-log-warning-if-run-is-not-writable.patch ...
75 Done with patching
76 Running elibtoolize in: udev-171/
77 Applying portage/1.2.0 patch ...
78 Applying sed/1.5.6 patch ...
79 Applying as-needed/2.2.6 patch ...
80 LOG: postinst
81
82 Updating persistent-net rules file
83 WARN: postinst
84
85 You need to add udev-mount to the sysinit runlevel.
86 If you do not do this,
87 your system will not be able to boot!
88 Run this command:
89 rc-update add udev-mount sysinit
90 LOG: postinst
91
92 persistent-net does assigning fixed names to network devices.
93 If you have problems with the persistent-net rules,
94 just delete the rules file
95 rm /etc/udev/rules.d/70-persistent-net.rules
96 and then reboot.
97
98 This may however number your devices in a different way than they are now.
99 WARN: postinst
100
101 If you build an initramfs including udev, then please
102 make sure that the /sbin/udevadm binary gets included,
103 and your scripts changed to use it,as it replaces the
104 old helper apps udevinfo, udevtrigger, ...
105
106 mount options for directory /dev are no longer
107 set in /etc/udev/udev.conf, but in /etc/fstab
108 as for other directories.
109
110 If you use /dev/md/*, /dev/loop/* or /dev/rd/*,
111 then please migrate over to using the device names
112 /dev/md*, /dev/loop* and /dev/ram*.
113 The devfs-compat rules have been removed.
114 For reference see Bug #269359.
115
116 Rules for /dev/hd* devices have been removed
117 Please migrate to libata.
118 LOG: postinst
119
120 For more information on udev on Gentoo, writing udev rules, and
121 fixing known issues visit:
122 http://www.gentoo.org/doc/en/udev-guide.xml
123
124
125
126 Always good to have some idiot change things without mentioning it.
127
128 Before the update and reboot mine was /dev/cdrom symlinked to /dev/sr0
129
130 Good way to spend my day finding what said idiot broke where/why...
131
132
133 --
134 Happy Penguin Gymnastics >')
135 126 Fenco Drive ( \
136 Tupelo, MS 38801 ^^
137 admin@××××××××××××××××××××××.com
138 662-321-7009
139 http://happypenguingymnastics.com/
140 FB: http://tiny.cc/HappyPenguinGymnastics
141
142 Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting

Replies

Subject Author
Re: [gentoo-user] udev update changed cd/dvd device name Mark Knecht <markknecht@×××××.com>