You are not logged in.
Pages: 1
I'm trying to write a udev rule so that my usb drive can have a symlink. Here is my rule inside the file /etc/udev/rules.d/local.rules:
ACTION=="add",
bus=="usb",
SYSFS{prduct}=="Mini Drive",
KERNEL=="sd*1",
NAME="%k",
SYMLINK="mdrive"
I then restart udev by entering the /etc/start_udev command. I unplug my usb drive and plug it in agani. There is not device in /dev that shows mdrive. I have my fstab properly updated. dmesg shows that the kernel recognizes the drive, and assigns it to sda1. I have tried my rule with scsi instead of usb, I've included the mode option in my rule, and still no luck.
Any input to get this working would be great.
Offline
I got rid of the ACTION option and instead of using the product name, I used the serial number. Now it works like a charm!
Offline
The rule you posted had
SYSFS{prduct}
It should be
SYSFS{product}
Offline
Pages: 1