1 |
So, it solves the first problem, identifiying the device, but how can I tell |
2 |
to udev to use always /dev/sds (for example) for this device? Also I'm |
3 |
thinking how can I instruct udev to turn off swap when the device is |
4 |
removed, but this is another story :) |
5 |
|
6 |
Thanks |
7 |
L: |
8 |
|
9 |
|
10 |
2010/7/1 Neil Bothwick <neil@××××××××××.uk> |
11 |
|
12 |
> On Thu, 1 Jul 2010 17:17:15 +0200, SpaceCake wrote: |
13 |
> |
14 |
> > I've never created udev rule so the usal way does not tell me too |
15 |
> > much :) I've checked the net for examples but it looks like very |
16 |
> > complicated for me :) |
17 |
> |
18 |
> http://www.reactivated.net/writing_udev_rules.html |
19 |
> |
20 |
> > My usb stick looks like this |
21 |
> > |
22 |
> > Bus 007 Device 015: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash |
23 |
> > Flash Drive |
24 |
> > |
25 |
> > Can you share with me some example how can I use this info on udev |
26 |
> > rules? |
27 |
> |
28 |
> SUBSYSTEMS=="usb", KERNEL=="sd[a-z]1", ATTRS{idVendor}=="058f", |
29 |
> ATTRS{idProduct}=="6387", RUN="/path/to/your/script" |
30 |
> |
31 |
> That's all on one line. |
32 |
> |
33 |
> -- |
34 |
> Neil Bothwick |
35 |
> |
36 |
> Like an atheist in a grave: all dressed up and no place to go. |
37 |
> |