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. |