1 |
I have a USB memory stick and an external USB box with an IDE disk. |
2 |
I configured udev to assign device names to both items, or so I thought. |
3 |
The external box is plugged, the memory stick isn't. |
4 |
The problem is: the device for the box is not created, and the memstick |
5 |
device exists but represents the box, not the stick. I read |
6 |
http://www.reactivated.net/writing_udev_rules.html#identify-sysfs |
7 |
and |
8 |
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Flash-Memory-HOWTO.html |
9 |
|
10 |
What else should I do? |
11 |
|
12 |
The gory details: |
13 |
|
14 |
$ ls /etc/udev/rules.d/ |
15 |
40-my.rules 40-my.rules~ 50-udev.rules |
16 |
|
17 |
$ cat /etc/udev/rules.d/40-my.rules |
18 |
BUS="scsi", SYSFS{vendor}="PLEXTOR ", SYSFS_model="PlexFlash-2*", NAME="plextor_memstick%n" |
19 |
BUS="scsi", SYSFS{vendor}="Maxtor 6 ", SYSFS_model="L250R0*", NAME="external_hd%n" |
20 |
|
21 |
I tried also SYSFS_vendor instead of SYSFS{vendor} ... |
22 |
|
23 |
$ mount -t auto /dev/plextor_memstick1 /mnt/maxtor/ |
24 |
$ ls /mnt/maxtor/ |
25 |
lost+found |
26 |
|
27 |
-- |
28 |
Jorge Almeida |
29 |
-- |
30 |
gentoo-user@g.o mailing list |