From: Dale <rdalek1967@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] help with Persistent hard disk device names with udev
Date: Tue, 31 Aug 2010 08:52:15 -0500 [thread overview]
Message-ID: <4C7D090F.70205@gmail.com> (raw)
In-Reply-To: <201008311508.49223.wonko@wonkology.org>
Alex Schuster wrote:
> Pau Peris writes:
>
>
>> Hi, after following your tips the code gets like the following one:
>>
>> SUBSYSTEM=="block", ATTR{serial}=="VNVB05G2RKTRZH", NAME="hda"
>> SUBSYSTEM=="block", ATTR{serial}=="9QK0T4WM", NAME="sda"
>> SUBSYSTEM=="block", ATTR{serial}=="3QD0X58D", NAME="sdb"
>> SUBSYSTEM=="block", ATTR{serial}=="9QK0RS9G", NAME="sdc"
>> SUBSYSTEM=="block", ATTR{serial}="9VP0SBVN", NAME="sdc"
>>
>> KERNEL=="hd*", SUBSYSTEM=="block", ATTR{serial}=="VNVB05G2RKTRZH",
>> NAME="hda%n" KERNEL=="sd*", SUBSYSTEM=="block",
>> ATTR{serial}=="9QK0T4WM", NAME="sda%n" KERNEL=="sd*",
>> SUBSYSTEM=="block", ATTR{serial}=="3QD0X58D", NAME="sdb%n"
>> KERNEL=="sd*", SUBSYSTEM=="block", ATTR{serial}=="9QK0RS9G",
>> NAME="sdc%n" KERNEL=="sd*", SUBSYSTEM=="block",
>> ATTR{serial}=="9VP0SBVN", NAME="sdc%n" That's not working, when i plug
>> more devices they get named without taking care of the rules above. Do
>> someone know why? thanks. i would like to be able to name devies using
>> its serial number. Thanks in advanced
>>
> Could it be that the sd* notation is somewhere hardwired in UDEV? I'd try
> to give the devices different names, like NAME="myhda", and so on.
>
> Just guessing,
>
> Wonko
>
>
This is a shot in the dark but just in case. What did you name the
rules file? Is it possible that it is reading your file then reading
another file udev generated and the last one it reads is the one that
sets the names? I would look to see if there is another file in the
rules.d directory that sets the naming and then see what udev reads last.
Again, shot in the dark and this may not apply.
Dale
:-) :-)
next prev parent reply other threads:[~2010-08-31 13:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-30 13:00 [gentoo-user] help with Persistent hard disk device names with udev Pau Peris
2010-08-30 13:32 ` J. Roeleveld
2010-08-30 14:17 ` Pau Peris
2010-08-31 12:58 ` Pau Peris
2010-08-31 13:08 ` Alex Schuster
2010-08-31 13:52 ` Dale [this message]
2010-08-31 19:33 ` Pau Peris
2010-09-01 13:37 ` Neil Bothwick
2010-09-01 11:31 ` David Relson
2010-10-09 11:58 ` Matthias Schwarzott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C7D090F.70205@gmail.com \
--to=rdalek1967@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox