So, it solves the first problem, identifiying the device, but how can I tell
to udev to use always /dev/sds (for example) for this device? Also I'm
thinking how can I instruct udev to turn off swap when the device is
removed, but this is another story :)

Thanks
L:


2010/7/1 Neil Bothwick <[email protected]>

> On Thu, 1 Jul 2010 17:17:15 +0200, SpaceCake wrote:
>
> > I've never created udev rule so the usal way does not tell me too
> > much :) I've checked the net for examples but it looks like very
> > complicated for me :)
>
> http://www.reactivated.net/writing_udev_rules.html
>
> > My usb stick looks like this
> >
> > Bus 007 Device 015: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash
> > Flash Drive
> >
> > Can you share with me some example how can I use this info on udev
> > rules?
>
> SUBSYSTEMS=="usb", KERNEL=="sd[a-z]1", ATTRS{idVendor}=="058f",
> ATTRS{idProduct}=="6387", RUN="/path/to/your/script"
>
> That's all on one line.
>
> --
> Neil Bothwick
>
> Like an atheist in a grave: all dressed up and no place to go.
>

Reply via email to