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 1OqRGh-0001wi-J7 for garchives@archives.gentoo.org; Tue, 31 Aug 2010 13:52:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35DA8E0AFA; Tue, 31 Aug 2010 13:52:20 +0000 (UTC) Received: from mail-gw0-f53.google.com (mail-gw0-f53.google.com [74.125.83.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 139A7E0AFA for ; Tue, 31 Aug 2010 13:52:20 +0000 (UTC) Received: by gwaa18 with SMTP id a18so2059597gwa.40 for ; Tue, 31 Aug 2010 06:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=h0fBIklSdz3S3uZGVAgM33aW6FNbJWO/kPLx2NBlPAo=; b=KQs6xOfy+OLYnCoTtwTWCr57dBet/mLpIAg064n5PqMOpkKz4gUs09Srw94o8YoDIl LomvRzso10FGJlqBDyXndes36LPNvp+TsFNn5rwQwXc5UNm1IlbZFjxxXSuLSbxZ2246 AMcmpz0nR15p5J5EuLXFyDWJMZBmD8xQKh9Ko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Cx7LdFb180+vlslbn7iL2cVKVgTQQN0zh7f5Dj0gXdNv93ui76CEHfgJM0yTepL+7f 8geFfxa61QoWloXTd5mi84KES+MNYro3zC9Z11zA7RXSyAQ87tsDGVMUyq5DR/XzVR1s EoFxunzbDMY0etngdC1yZAY5V4vVt2v0R6rQ4= Received: by 10.229.220.73 with SMTP id hx9mr4246319qcb.67.1283262738696; Tue, 31 Aug 2010 06:52:18 -0700 (PDT) Received: from [192.168.1.2] (adsl-95-133-232.jan.bellsouth.net [98.95.133.232]) by mx.google.com with ESMTPS id r1sm9728449qcq.34.2010.08.31.06.52.16 (version=SSLv3 cipher=RC4-MD5); Tue, 31 Aug 2010 06:52:17 -0700 (PDT) Message-ID: <4C7D090F.70205@gmail.com> Date: Tue, 31 Aug 2010 08:52:15 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100801 Gentoo/2.0.6 SeaMonkey/2.0.6 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] help with Persistent hard disk device names with udev References: <201008311508.49223.wonko@wonkology.org> In-Reply-To: <201008311508.49223.wonko@wonkology.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 9e61f488-e408-45af-bea1-6e7cb391d1b7 X-Archives-Hash: 36df24291139012492d5cf8065f37ffa 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 :-) :-)