Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] help with Persistent hard disk device names with udev
Date: Tue, 31 Aug 2010 13:09:29
Message-Id: 201008311508.49223.wonko@wonkology.org
In Reply to: Re: [gentoo-user] help with Persistent hard disk device names with udev by Pau Peris
1 Pau Peris writes:
2
3 > Hi, after following your tips the code gets like the following one:
4 >
5 > SUBSYSTEM=="block", ATTR{serial}=="VNVB05G2RKTRZH", NAME="hda"
6 > SUBSYSTEM=="block", ATTR{serial}=="9QK0T4WM", NAME="sda"
7 > SUBSYSTEM=="block", ATTR{serial}=="3QD0X58D", NAME="sdb"
8 > SUBSYSTEM=="block", ATTR{serial}=="9QK0RS9G", NAME="sdc"
9 > SUBSYSTEM=="block", ATTR{serial}="9VP0SBVN", NAME="sdc"
10 >
11 > KERNEL=="hd*", SUBSYSTEM=="block", ATTR{serial}=="VNVB05G2RKTRZH",
12 > NAME="hda%n" KERNEL=="sd*", SUBSYSTEM=="block",
13 > ATTR{serial}=="9QK0T4WM", NAME="sda%n" KERNEL=="sd*",
14 > SUBSYSTEM=="block", ATTR{serial}=="3QD0X58D", NAME="sdb%n"
15 > KERNEL=="sd*", SUBSYSTEM=="block", ATTR{serial}=="9QK0RS9G",
16 > NAME="sdc%n" KERNEL=="sd*", SUBSYSTEM=="block",
17 > ATTR{serial}=="9VP0SBVN", NAME="sdc%n" That's not working, when i plug
18 > more devices they get named without taking care of the rules above. Do
19 > someone know why? thanks. i would like to be able to name devies using
20 > its serial number. Thanks in advanced
21
22 Could it be that the sd* notation is somewhere hardwired in UDEV? I'd try
23 to give the devices different names, like NAME="myhda", and so on.
24
25 Just guessing,
26
27 Wonko

Replies

Subject Author
Re: [gentoo-user] help with Persistent hard disk device names with udev Dale <rdalek1967@×××××.com>