From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OqWaS-00051V-Qn for garchives@archives.gentoo.org; Tue, 31 Aug 2010 19:33:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E23D5E0962; Tue, 31 Aug 2010 19:33:01 +0000 (UTC) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.213.181]) by pigeon.gentoo.org (Postfix) with ESMTP id C6436E0962 for ; Tue, 31 Aug 2010 19:33:01 +0000 (UTC) Received: by yxh35 with SMTP id 35so3971609yxh.40 for ; Tue, 31 Aug 2010 12:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=h2vvICxYnC38RnjaBJ5S5N9xRe2RwSeD4kSwpGi/OMA=; b=nzvuHv7RsKssx6Bw2sGri3WpDCBJq756MvdO/xZaTLJhsyUiIdn+bVuellLRpHC2KT Lpr5LKZyQVTq/UvS3bSsGJrxko9ZvNP3I1GlxwR3SunWuLq7dPY6cCf0HvRzK59/T13y nKCkjwOaFQDf8+UVY0dcifCMg0RmmjkHflR3w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=A+GR+caGNQFbWeYkPG4a3wqhmkisjlEd3MT6Z1J1G7ebY8c6yfJX7+Bwm2vb2EkRyC qPZnW9VLPmOiqwhKEC48Ma6MCBCGkfXkURKGLlpsohQI1a1GL5OOzCQpTfJPVHgDjHmB AiRYhy+mW38Wn8oG/VeIR2JN148k1ZEvbnBFw= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.101.127.5 with SMTP id e5mr7064025ann.138.1283283181388; Tue, 31 Aug 2010 12:33:01 -0700 (PDT) Received: by 10.100.131.5 with HTTP; Tue, 31 Aug 2010 12:33:01 -0700 (PDT) In-Reply-To: <4C7D090F.70205@gmail.com> References: <201008311508.49223.wonko@wonkology.org> <4C7D090F.70205@gmail.com> Date: Tue, 31 Aug 2010 21:33:01 +0200 Message-ID: Subject: Re: [gentoo-user] help with Persistent hard disk device names with udev From: Pau Peris To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 9a9c33cf-22c6-4c96-806a-1a46f27e0873 X-Archives-Hash: 7af24fbbb450ef9eadf7c47bb1233437 Hi, thanks a lot for the answers. The name of the rules file is 00_whatever.rules, as far as i know there's also an option which prevents to modifye the setted rules. Well, if no one knows how to do i will try to find a different solution. 2010/8/31 Dale : > Alex Schuster wrote: >> >> Pau Peris writes: >> >> >>> >>> Hi, after following your tips the code gets like the following one: >>> >>> SUBSYSTEM=3D=3D"block", ATTR{serial}=3D=3D"VNVB05G2RKTRZH", NAME=3D"hda= " >>> SUBSYSTEM=3D=3D"block", ATTR{serial}=3D=3D"9QK0T4WM", NAME=3D"sda" >>> SUBSYSTEM=3D=3D"block", ATTR{serial}=3D=3D"3QD0X58D", NAME=3D"sdb" >>> SUBSYSTEM=3D=3D"block", ATTR{serial}=3D=3D"9QK0RS9G", NAME=3D"sdc" >>> SUBSYSTEM=3D=3D"block", ATTR{serial}=3D"9VP0SBVN", NAME=3D"sdc" >>> >>> KERNEL=3D=3D"hd*", SUBSYSTEM=3D=3D"block", ATTR{serial}=3D=3D"VNVB05G2R= KTRZH", >>> NAME=3D"hda%n" KERNEL=3D=3D"sd*", SUBSYSTEM=3D=3D"block", >>> ATTR{serial}=3D=3D"9QK0T4WM", NAME=3D"sda%n" KERNEL=3D=3D"sd*", >>> SUBSYSTEM=3D=3D"block", ATTR{serial}=3D=3D"3QD0X58D", NAME=3D"sdb%n" >>> KERNEL=3D=3D"sd*", SUBSYSTEM=3D=3D"block", ATTR{serial}=3D=3D"9QK0RS9G"= , >>> NAME=3D"sdc%n" KERNEL=3D=3D"sd*", SUBSYSTEM=3D=3D"block", >>> ATTR{serial}=3D=3D"9VP0SBVN", NAME=3D"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 tr= y >> to give the devices different names, like NAME=3D"myhda", and so on. >> >> Just guessing, >> >> =A0 =A0 =A0 =A0Wonko >> >> > > This is a shot in the dark but just in case. =A0What did you name the rul= es > file? =A0Is 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? = =A0I > 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 > > :-) =A0:-) > >