udev rules not working

mparrilla at ono.com mparrilla at ono.com
Thu Dec 11 22:20:46 UTC 2008


Hello

I have a usb pen drive and I want it to be mounted in a 
particular directory when I plug it.

I have written a udev rule in the 
file /etc/udev/rules.d/50-MyRule.rules:

BUS=="usb", KERNEL=="sd?1", 
ATTRS{product}=="USB DISK 2.0", ATTRS{serial}=="078A184502BD", NAME="%
k", SYMLINK+="usb16GB%n"

and added to /etc/fstab the line:


/dev/usb16GB1 /mnt/usbdisk    ext3  users,noauto,exec,suid  0     0


But when I plug the pen drive, it is automounted in /media/usb0, 
ignoring my udev rule.

If I umount the device and do:

mount  
/mnt/usbdisk

It is correctly mounted.

How can I get what I want?

Any 
help will be appreciated.


Manuel Parrilla.




More information about the ubuntu-users mailing list