public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] udev.rules: Two "removeable" SATA-hds...how to map to /dev ???
@ 2006-08-04  4:14 Meino Christian Cramer
  2006-08-04  9:19 ` Richard Fish
  2006-08-04 10:10 ` Etaoin Shrdlu
  0 siblings, 2 replies; 10+ messages in thread
From: Meino Christian Cramer @ 2006-08-04  4:14 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-08-05  2:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-04  4:14 [gentoo-user] udev.rules: Two "removeable" SATA-hds...how to map to /dev ??? Meino Christian Cramer
2006-08-04  9:19 ` Richard Fish
2006-08-04  9:39   ` Meino Christian Cramer
2006-08-04 17:43     ` Richard Fish
2006-08-04 10:10 ` Etaoin Shrdlu
2006-08-04 17:28   ` Richard Fish
2006-08-04 18:30     ` Meino Christian Cramer
2006-08-04 20:59       ` Richard Fish
2006-08-05  2:41         ` Meino Christian Cramer
2006-08-05  2:44         ` Meino Christian Cramer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox