Hi,

 Trying to write some udev rules to map two identical (model wise)
 SATA-harddiscs to different entries in /dev/. got a question mark
 into my head:

 Both harddiscs are removeable and either the first or the second are
 inserted into my system. Both harddiscs are identical models and will
 have the same partitioning and formatting. Only the contents will differ.
 Currently they are "pure metal"... :)

 If inserted a /dev/sda is created

 I did a udevinfo -a -p /dev/sda and got different informations per
 bus type.

 Under BUS="scsi" there is a model name, which normally is used for
 entries of the udev.rules files.

 But: How can I distinguish both harddiscs?

 The entries under BUS="pci" do mention:
  looking at device '/devices/pci0000:00/0000:00:0f.0':
    ID=="0000:00:0f.0"
    BUS=="pci"
    DRIVER=="sata_via"
    SYSFS{modalias}=="pci:v00001106d00003149sv00001043sd000080EDbc01sc04i00"
    SYSFS{local_cpus}=="3"
    SYSFS{irq}=="18"
    SYSFS{class}=="0x010400"
    SYSFS{subsystem_device}=="0x80ed"
    SYSFS{subsystem_vendor}=="0x1043"
    SYSFS{device}=="0x3149"
    SYSFS{vendor}=="0x1106"

 ...but this is another bus type for the same entry....

 How can I identify both harddiscs individually ?

 Thank you very much for any help in advance !
 mcc

 
-- 
gentoo-user@gentoo.org mailing list

Reply via email to