Gentoo Archives: gentoo-user

From: "»Q«" <boxcars@×××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Set mount point of external drive with udev rules
Date: Thu, 01 Apr 2010 01:04:31
Message-Id: 20100331191144.7f4a4d04@bellgrove.remarqs.net
In Reply to: [gentoo-user] Fwd: Set mount point of external drive with udev rules by mikey
1 On Tue, 30 Mar 2010 17:10:53 +0100
2 mikey <abc.mikey@××××××××××.com> wrote:
3
4 > My guess to see if I can select the right drive
5 > /etc/udev/rules.d/10-local.rules:
6 >
7 > SUBSYSTEMS=="block", ATTRS{serial}=="2HBEQTN2", KERNEL=="sd?",
8 > NAME="%k", SYMLINK+="external", GROUP="storage"
9 > SUBSYSTEMS=="scsi", ATTRS{serial}=="2HBEQTN2", KERNEL=="sd?1",
10 > SYMLINK+="external", GROUP="storage"
11
12 From <http://www.reactivated.net/writing_udev_rules.html>:
13
14 ... while it is legal to combine the attributes from the device in
15 question and a single parent device, you cannot mix-and-match
16 attributes from multiple parent devices - your rule will not work.
17
18 From the output of `udevadm info` you posted later, the parent device
19 with ATTRS{serial}=="2HBEQTN2" has SUBSYSTEMS=="usb", not "block"
20 or "scsi". That's the only problem I noticed, but I didn't look too
21 hard after seeing that one.
22
23 --
24 »Q«
25 Kleeneness is next to Gödelness.