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 58EA51395E2 for ; Tue, 15 Nov 2016 10:21:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36D52E0CFA; Tue, 15 Nov 2016 10:21: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 DD117E0CE3 for ; Tue, 15 Nov 2016 10:21:33 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c6arP-0003ET-Ez for gentoo-user@lists.gentoo.org; Tue, 15 Nov 2016 11:21:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Martin Vaeth Subject: [gentoo-user] Re: UDEV rule problem Date: Tue, 15 Nov 2016 10:20:24 +0000 (UTC) Message-ID: References: X-Complaints-To: usenet@blaine.gmane.org User-Agent: slrn/pre1.0.0-26 (Linux) 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 X-Archives-Salt: 6579e6ec-9d30-4767-a02e-c88bbb919066 X-Archives-Hash: a7d8f97ea92ac663a535ecf5310b0d74 Helmut Jarausch wrote: > > Since the hard drives within theses enclosures have different > capacities, there is a different ATTR{size} value in the > block-subsystem. > > How can I write to different udev rules to distinguish these two > external hard disks? KERNEL=="sd[a-z]*", ATTR{size}=="31...", ATTRS{model}=="...", SYMLINK+="d1%n", OPTIONS="last_rule"