From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ADE0A1395E2 for ; Mon, 14 Nov 2016 20:35:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E71CE09AA; Mon, 14 Nov 2016 20:35:34 +0000 (UTC) Received: from blaine.gmane.org (unknown [195.159.176.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA55BE0944 for ; Mon, 14 Nov 2016 20:35:33 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c6Ny7-0002uw-Q2 for gentoo-user@lists.gentoo.org; Mon, 14 Nov 2016 21:35:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Kai Krakow Subject: [gentoo-user] Re: UDEV rule problem Date: Mon, 14 Nov 2016 21:33:09 +0100 Message-ID: <20161114213309.0c30a505@jupiter.sol.kaishome.de> References: 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=US-ASCII Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org X-Newsreader: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-pc-linux-gnu) X-Archives-Salt: acdf3304-8c6e-4500-a8a2-7b4dfb5d7c0f X-Archives-Hash: 46023ef781e052557ba88e5cf2f6d81e Am Mon, 14 Nov 2016 15:31:58 +0100 schrieb Helmut Jarausch : > Hi, > > I have two external USB3 hard disk enclosures. They have the same > vendor, model and the same serial number (unfortunately). > Vendor, model and serial occur in the usb-subsystem only. > > Since the hard drives within theses enclosures have different > capacities, there is a different ATTR{size} value in the > block-subsystem. > But this doesn't have any vendor info. > > How can I write to different udev rules to distinguish these two > external hard disks? I've seen many drives where really the serial number as reported by Linux is the model number, and the serial number is somehow invisible... Not sure if this is a kernel bug or some ATA protocol violation. Especially USB enclosures are a problem with this... -- Regards, Kai Replies to list-only preferred.