|
@@ -23,12 +23,13 @@
|
|
for you, depending on the capabilities of each device, but you need to
|
|
for you, depending on the capabilities of each device, but you need to
|
|
decide which of two modes of operation you wish to have the script use.</para>
|
|
decide which of two modes of operation you wish to have the script use.</para>
|
|
|
|
|
|
- <para>First, the script can operate in <quote>by-path</quote> mode, where
|
|
|
|
- the rules it creates depend on the physical path to the CD or DVD device.
|
|
|
|
- Second, it can operate in <quote>by-id</quote> mode, where the rules it
|
|
|
|
- creates depend on identification strings stored in the CD or DVD device
|
|
|
|
- itself. The path is determined by Udev's <command>path_id</command> script,
|
|
|
|
- and the identification strings are read from the hardware by its
|
|
|
|
|
|
+ <para>First, the script can operate in <quote>by-path</quote> mode (used by
|
|
|
|
+ default for USB and FireWire devices), where the rules it creates depend on
|
|
|
|
+ the physical path to the CD or DVD device. Second, it can operate in
|
|
|
|
+ <quote>by-id</quote> mode (default for IDE and SCSI devices), where the
|
|
|
|
+ rules it creates depend on identification strings stored in the CD or DVD
|
|
|
|
+ device itself. The path is determined by Udev's <command>path_id</command>
|
|
|
|
+ script, and the identification strings are read from the hardware by its
|
|
<command>ata_id</command> or <command>scsi_id</command> programs, depending
|
|
<command>ata_id</command> or <command>scsi_id</command> programs, depending
|
|
on which type of device you have.</para>
|
|
on which type of device you have.</para>
|
|
|
|
|
|
@@ -69,13 +70,13 @@
|
|
is not empty, otherwise it will use a combination of ID_MODEL and
|
|
is not empty, otherwise it will use a combination of ID_MODEL and
|
|
ID_REVISION. The <quote>by-path</quote> mode will use the ID_PATH value.</para>
|
|
ID_REVISION. The <quote>by-path</quote> mode will use the ID_PATH value.</para>
|
|
|
|
|
|
- <para>If you choose the <quote>by-path</quote> mode, then the rules files
|
|
|
|
- installed by default with Udev will work. If you choose the <quote>by-id</quote>
|
|
|
|
- mode, then you will have to modify the
|
|
|
|
|
|
+ <para>If the default mode is not suitable for your situation, then the
|
|
|
|
+ following modification can be made to the
|
|
<filename>/etc/udev/rules.d/75-cd-aliases-generator.rules</filename> file,
|
|
<filename>/etc/udev/rules.d/75-cd-aliases-generator.rules</filename> file,
|
|
- as follows:</para>
|
|
|
|
|
|
+ as follows (where <replaceable>mode</replaceable> is one of
|
|
|
|
+ <quote>by-id</quote> or <quote>by-path</quote>):</para>
|
|
|
|
|
|
-<screen><userinput>sed -i -e 's/write_cd_aliases/& by-id/' \
|
|
|
|
|
|
+<screen><userinput>sed -i -e 's/write_cd_aliases/& <replaceable>mode</replaceable>/' \
|
|
/etc/udev/rules.d/75-cd-aliases-generator.rules</userinput></screen>
|
|
/etc/udev/rules.d/75-cd-aliases-generator.rules</userinput></screen>
|
|
|
|
|
|
<para>Note that it is not necessary to create the rules files or symlinks
|
|
<para>Note that it is not necessary to create the rules files or symlinks
|