On Tue, 30 Mar 2010 17:10:53 +0100
mikey <[email protected]> wrote:
> My guess to see if I can select the right drive
> /etc/udev/rules.d/10-local.rules:
>
> SUBSYSTEMS=="block", ATTRS{serial}=="2HBEQTN2", KERNEL=="sd?",
> NAME="%k", SYMLINK+="external", GROUP="storage"
> SUBSYSTEMS=="scsi", ATTRS{serial}=="2HBEQTN2", KERNEL=="sd?1",
> SYMLINK+="external", GROUP="storage"
From <http://www.reactivated.net/writing_udev_rules.html>:
... while it is legal to combine the attributes from the device in
question and a single parent device, you cannot mix-and-match
attributes from multiple parent devices - your rule will not work.
From the output of `udevadm info` you posted later, the parent device
with ATTRS{serial}=="2HBEQTN2" has SUBSYSTEMS=="usb", not "block"
or "scsi". That's the only problem I noticed, but I didn't look too
hard after seeing that one.
--
»Q«
Kleeneness is next to Gödelness.