Gentoo Archives: gentoo-user

From: Meino Christian Cramer <Meino.Cramer@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] udev.rules: Two "removeable" SATA-hds...how to map to /dev ???
Date: Fri, 04 Aug 2006 04:19:39
Message-Id: 20060804.061459.74743590.Meino.Cramer@gmx.de
1 Hi,
2
3 Trying to write some udev rules to map two identical (model wise)
4 SATA-harddiscs to different entries in /dev/. got a question mark
5 into my head:
6
7 Both harddiscs are removeable and either the first or the second are
8 inserted into my system. Both harddiscs are identical models and will
9 have the same partitioning and formatting. Only the contents will differ.
10 Currently they are "pure metal"... :)
11
12 If inserted a /dev/sda is created
13
14 I did a udevinfo -a -p /dev/sda and got different informations per
15 bus type.
16
17 Under BUS="scsi" there is a model name, which normally is used for
18 entries of the udev.rules files.
19
20 But: How can I distinguish both harddiscs?
21
22 The entries under BUS="pci" do mention:
23 looking at device '/devices/pci0000:00/0000:00:0f.0':
24 ID=="0000:00:0f.0"
25 BUS=="pci"
26 DRIVER=="sata_via"
27 SYSFS{modalias}=="pci:v00001106d00003149sv00001043sd000080EDbc01sc04i00"
28 SYSFS{local_cpus}=="3"
29 SYSFS{irq}=="18"
30 SYSFS{class}=="0x010400"
31 SYSFS{subsystem_device}=="0x80ed"
32 SYSFS{subsystem_vendor}=="0x1043"
33 SYSFS{device}=="0x3149"
34 SYSFS{vendor}=="0x1106"
35
36 ...but this is another bus type for the same entry....
37
38 How can I identify both harddiscs individually ?
39
40 Thank you very much for any help in advance !
41 mcc
42
43
44 --
45 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] udev.rules: Two "removeable" SATA-hds...how to map to /dev ??? Richard Fish <bigfish@××××××××××.org>
Re: [gentoo-user] udev.rules: Two "removeable" SATA-hds...how to map to /dev ??? Etaoin Shrdlu <shrdlu@×××××××××××××.org>