Gentoo Archives: gentoo-user

From: Martin Vaeth <martin@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: UDEV rule problem
Date: Tue, 15 Nov 2016 10:21:41
Message-Id: slrno2lobc.9p8.martin@lounge.imp.fu-berlin.de
In Reply to: [gentoo-user] UDEV rule problem by Helmut Jarausch
1 Helmut Jarausch <jarausch@××××××.be> wrote:
2 >
3 > Since the hard drives within theses enclosures have different
4 > capacities, there is a different ATTR{size} value in the
5 > block-subsystem.
6 >
7 > How can I write to different udev rules to distinguish these two
8 > external hard disks?
9
10 KERNEL=="sd[a-z]*", ATTR{size}=="31...", ATTRS{model}=="...", SYMLINK+="d1%n", OPTIONS="last_rule"