Gentoo Archives: gentoo-user

From: Pau Peris <sibok1981@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] help with Persistent hard disk device names with udev
Date: Mon, 30 Aug 2010 13:04:49
Message-Id: AANLkTimkk_TS4ASDc0u7ffiwCYQsLnk2=JMt7LF7R=0D@mail.gmail.com
1 Hi, i would like to give persistent device names to the system hard
2 drives (just renaming its original device name to the one i want using
3 its serial number as identifier). I've created the following rules
4 which are not currently working. I'm trying to use device serial
5 numbers to properly set its device name. One of the main reasons for
6 doing that is i have a RAID composed by 3 disk (let's say sda sdc sdd)
7 and when i plug another 4 disks sda becomes sde, sdc becomes sdg and
8 so on while new drives take old device names, that's why i would like
9 to make it sure device names remains always the same.
10 Here are the rules
11 Código:
12
13 SUBSYSTEM=="block", ATTR{serial}="VNVB05G2RKTRZH", NAME="hda"
14 SUBSYSTEM=="block", ATTR{serial}="9QK0T4WM", NAME="sda"
15 SUBSYSTEM=="block", ATTR{serial}="3QD0X58D", NAME="sdb"
16 SUBSYSTEM=="block", ATTR{serial}="9QK0RS9G", NAME="sdc"
17 SUBSYSTEM=="block", ATTR{serial}="9VP0SBVN", NAME="sdc"
18
19 KERNEL=="hd*", SUBSYSTEM=="block", ATTR{serial}="VNVB05G2RKTRZH", NAME="hda%n"
20 KERNEL=="sd*", SUBSYSTEM=="block", ATTR{serial}="9QK0T4WM", NAME="sda%n"
21 KERNEL=="sd*", SUBSYSTEM=="block", ATTR{serial}="3QD0X58D", NAME="sdb%n"
22 KERNEL=="sd*", SUBSYSTEM=="block", ATTR{serial}="9QK0RS9G", NAME="sdc%n"
23 KERNEL=="sd*", SUBSYSTEM=="block", ATTR{serial}="9VP0SBVN", NAME="sdc%n"
24
25
26 Should this work? Do some one know how can i get it to work? thanks in advanced

Replies

Subject Author
Re: [gentoo-user] help with Persistent hard disk device names with udev "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-user] help with Persistent hard disk device names with udev David Relson <relson@×××××××××××××.com>
Re: [gentoo-user] help with Persistent hard disk device names with udev Matthias Schwarzott <zzam@g.o>