On 5/29/06, Leandro Melo de Sales <[EMAIL PROTECTED]> wrote:
  BUS=="scsi", SYSFS{model}=="SAMSUNG SP123245", NAME="/dev/sda"
  BUS=="scsi", SYSFS{model}=="SysOp           ", NAME="/dev/sdb"
  BUS=="scsi", SYSFS{model}=="Dados           ", NAME="/dev/sdc"

1. You probably need the ":=" syntax to prevent later rules from
over-riding your settings.  For example, in 50-udev.rules, I see:
50-udev.rules:KERNEL=="sd*",            NAME="%k", GROUP="disk"

2. You should not have the "/dev/" part of NAME.

3. You probably also need to handle the partitions with the %n syntax

So those rules should be more like:

BUS=="scsi", KERNEL=="sd*", SYSFS{model}=="SAMSUNG SP123245", NAME:="sda%n"
BUS=="scsi", KERNEL=="sd*", SYSFS{model}=="SysOp           ", NAME:="sdb%n"
BUS=="scsi", KERNEL=="sd*", SYSFS{model}=="Dados           ", NAME:="sdc%n"

You might also consider using LVM on these disks, so you need not care
about sdX, or mounting them by fileystem label.

-Richard
--
gentoo-user@gentoo.org mailing list

Reply via email to