[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hotplug, udev and usbkey question

John L Fjellstad wrote:
Tony gave a pretty good advice about changing the rule to use a SYMLINK
instead of NAME.  I'm still very curious about why your local rules was
not read, though.
What kind of permissions do you have on your rules files?  Also, is udev
running as root?

Hi John and Tony,
I hope I understand your input. Are you saying that I should change the NAME to SYMLINK in my file as follows ?

bob@t40:/etc/udev/rules.d$ cat 00usbkey.rules
BUS="usb", SYSFS{manufacturer}="IBM", SYSFS{product}="USB 2.0 Memory Key", SYMLINK="usbkey%n", GROUP="disk", MODE="0660"

Hoping to have understood I edited as above, /etc/init.d/udev restart

Insert USB key but the rule we have written does not seem to be applied :( :( :( :( Only /dev/sda and /dev/sda1 get created.

All seems fine in terms of processes and rights :(

bob@t40:~$ ps aux |grep udev
root       356  0.0  0.0   1568   464 ?        S<s  11:02   0:00 udevd
bob       6947  0.0  0.0   2108   568 pts/0    R+   11:35   0:00 grep udev
bob@t40:~$ ls -l /etc/udev/udev.
udev.conf   udev.rules
bob@t40:~$ ls -l /etc/udev/
cd-aliases.rules         hal.rules                simple-cd-aliases.rules
cdsymlinks.conf          links.conf               udev.conf
compat-full.rules        permissions.d/           udev.rules
compat.rules             rules.d/
devfs.rules              scripts/
bob@t40:~$ ls -ld /etc/udev/rules.d/
drwxr-xr-x  2 root root 1024 2005-03-18 18:38 /etc/udev/rules.d/
bob@t40:~$ ls -ld /etc/udev/rules.d/*
-rw-r--r-- 1 root root 118 2005-03-18 18:38 /etc/udev/rules.d/00usbkey.rules -rw-r--r-- 1 root root 74 2005-01-18 09:18 /etc/udev/rules.d/10-local.rules lrwxrwxrwx 1 root root 19 2004-12-22 14:34 /etc/udev/rules.d/cd-aliases.rules -> ../cd-aliases.rules lrwxrwxrwx 1 root root 13 2004-12-22 14:34 /etc/udev/rules.d/udev.rules -> ../udev.rules lrwxrwxrwx 1 root root 12 2005-02-18 10:05 /etc/udev/rules.d/z_hal-plugdev.rules -> ../hal.rules

Reply to: