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 1OqQac-00059T-5Z for garchives@archives.gentoo.org; Tue, 31 Aug 2010 13:09:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC47CE1105; Tue, 31 Aug 2010 13:08:58 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id 55D33E1105 for ; Tue, 31 Aug 2010 13:08:58 +0000 (UTC) Received: from weird.localnet (p4FF04C0F.dip.t-dialin.net [79.240.76.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.virtyou.com (Postfix) with ESMTPSA id AE9664A8290 for ; Tue, 31 Aug 2010 15:08:57 +0200 (CEST) From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] help with Persistent hard disk device names with udev Date: Tue, 31 Aug 2010 15:08:48 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34-tuxonice; KDE/4.5.0; x86_64; ; ) References: In-Reply-To: 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 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008311508.49223.wonko@wonkology.org> X-Archives-Salt: bdace680-a6e2-4705-a36e-2b359346d05e X-Archives-Hash: abed3e61c68966fd590481ae05efd563 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