|
@@ -32,13 +32,13 @@
|
|
location of the device on the bus. If you are going to use the first
|
|
location of the device on the bus. If you are going to use the first
|
|
approach, create a file similar to the following:</para>
|
|
approach, create a file similar to the following:</para>
|
|
|
|
|
|
-<screen role="nodump"><userinput>cat > /etc/udev/rules.d/82-cdrom.rules << EOF
|
|
|
|
|
|
+<screen role="nodump"><userinput>cat > /etc/udev/rules.d/70-persistent-cd.rules << EOF
|
|
<literal>
|
|
<literal>
|
|
# Custom CD-ROM symlinks
|
|
# Custom CD-ROM symlinks
|
|
SUBSYSTEM=="block", ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F", \
|
|
SUBSYSTEM=="block", ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F", \
|
|
- ENV{ID_REVISION}=="PS05", SYMLINK+="cdrom"
|
|
|
|
|
|
+ ENV{ID_REVISION}=="PS05", ENV{GENERATED}="1", SYMLINK+="cdrom"
|
|
SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301", \
|
|
SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301", \
|
|
- ENV{ID_SERIAL}=="5VO1306DM00190", SYMLINK+="cdrom1 dvd"
|
|
|
|
|
|
+ ENV{ID_SERIAL}=="5VO1306DM00190", ENV{GENERATED}="1", SYMLINK+="cdrom1 dvd"
|
|
</literal>
|
|
</literal>
|
|
EOF</userinput></screen>
|
|
EOF</userinput></screen>
|
|
|
|
|
|
@@ -68,15 +68,21 @@ EOF</userinput></screen>
|
|
<filename>/dev/srX</filename> devices, and sometimes to
|
|
<filename>/dev/srX</filename> devices, and sometimes to
|
|
<filename>/dev/sgX</filename>, which is wrong.</para>
|
|
<filename>/dev/sgX</filename>, which is wrong.</para>
|
|
|
|
|
|
|
|
+ <para>The ENV{GENERATED}="1" key is needed to prevent the Udev
|
|
|
|
+ 75-cd-aliases-generator.rules file from overriding your custom
|
|
|
|
+ rules.</para>
|
|
|
|
+
|
|
<para>The second approach yields:</para>
|
|
<para>The second approach yields:</para>
|
|
|
|
|
|
-<screen role="nodump"><userinput>cat > /etc/udev/rules.d/82-cdrom.rules << EOF
|
|
|
|
|
|
+<screen role="nodump"><userinput>cat > /etc/udev/rules.d/70-persistent-cd.rules << EOF
|
|
<literal>
|
|
<literal>
|
|
# Custom CD-ROM symlinks
|
|
# Custom CD-ROM symlinks
|
|
SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
|
|
SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
|
|
- ENV{ID_PATH}=="pci-0000:00:07.1-ide-0:1", SYMLINK+="cdrom"
|
|
|
|
|
|
+ ENV{ID_PATH}=="pci-0000:00:07.1-ide-0:1", \
|
|
|
|
+ ENV{GENERATED}="1", SYMLINK+="cdrom"
|
|
SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
|
|
SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
|
|
- ENV{ID_PATH}=="pci-0000:00:07.1-ide-1:1", SYMLINK+="cdrom1 dvd"
|
|
|
|
|
|
+ ENV{ID_PATH}=="pci-0000:00:07.1-ide-1:1", \
|
|
|
|
+ ENV{GENERATED}="1", SYMLINK+="cdrom1 dvd"
|
|
</literal>
|
|
</literal>
|
|
EOF</userinput></screen>
|
|
EOF</userinput></screen>
|
|
|
|
|