On Tue, Mar 30, 2010 at 11:10 AM, mikey <abc.mi...@googlemail.com> wrote:
> Hi I have an external drive that I would like mounted with HAL, so
> that it doesn't mount on boot (which takes ages for it to spin up) and
> so that I can add and remove it easily.
>
> As I understand it udev rules are the way of doing this.
>
> I have spent quite a while reading about these and understand roughly
> what i want but I can't get any response from the changes I have made
> (and have had to guess about things I don't want to guess about) so
> how do I set them:
>
> 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"
>
>
> Produces no /dev/external when I restart HALD

I recently did this with a bit more generic rule, this works for me:

#LaCie 2TB USB hard drive
SUBSYSTEMS=="usb", ATTRS{manufacturer}=="LaCie",
ATTRS{product}=="LaCie Hard Disk", NAME{all_partitions}="lacie",
SYMLINK="lacie"

It will create /dev/lacie1 for the first partition, /dev/lacie2 for second, etc.

Reply via email to