Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] udev rules and boot + SCSI disks
Date: Tue, 30 May 2006 06:33:52
Message-Id: 7573e9640605292328w1e59f326ka1609f77f90e29fe@mail.gmail.com
In Reply to: [gentoo-user] udev rules and boot + SCSI disks by Leandro Melo de Sales
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

Replies

Subject Author
Re: [gentoo-user] udev rules and boot + SCSI disks Leandro Melo de Sales <leandroal@×××××.com>
Re: [gentoo-user] udev rules and boot + SCSI disks Leandro Melo de Sales <leandroal@×××××.com>