1 |
On 5/29/06, Leandro Melo de Sales <leandroal@×××××.com> wrote: |
2 |
> BUS=="scsi", SYSFS{model}=="SAMSUNG SP123245", NAME="/dev/sda" |
3 |
> BUS=="scsi", SYSFS{model}=="SysOp ", NAME="/dev/sdb" |
4 |
> BUS=="scsi", SYSFS{model}=="Dados ", NAME="/dev/sdc" |
5 |
|
6 |
1. You probably need the ":=" syntax to prevent later rules from |
7 |
over-riding your settings. For example, in 50-udev.rules, I see: |
8 |
50-udev.rules:KERNEL=="sd*", NAME="%k", GROUP="disk" |
9 |
|
10 |
2. You should not have the "/dev/" part of NAME. |
11 |
|
12 |
3. You probably also need to handle the partitions with the %n syntax |
13 |
|
14 |
So those rules should be more like: |
15 |
|
16 |
BUS=="scsi", KERNEL=="sd*", SYSFS{model}=="SAMSUNG SP123245", NAME:="sda%n" |
17 |
BUS=="scsi", KERNEL=="sd*", SYSFS{model}=="SysOp ", NAME:="sdb%n" |
18 |
BUS=="scsi", KERNEL=="sd*", SYSFS{model}=="Dados ", NAME:="sdc%n" |
19 |
|
20 |
You might also consider using LVM on these disks, so you need not care |
21 |
about sdX, or mounting them by fileystem label. |
22 |
|
23 |
-Richard |
24 |
-- |
25 |
gentoo-user@g.o mailing list |