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