On Wednesday 10 June 2015 18:39:11 Michael Soulier wrote:
> On 2015-06-09 4:22 PM, deloptes wrote:
> > ls -a /dev/disk/by-id/ or uuid is an option if you want predictable name,
> > no?
>
> I suppose, but I'd like to know why working through udev isn't working.
Not every subsystem works.
You use
SUBSYSTEM=="scsi", ATTRS{model}=="JD FireFly ",
SYMLINK+="Lexar%n"
I never had any luck with the scsi subsystem.
I have been using the following rules depending, mostly, on my mood at
the moment. A good karma may help too :-)
ACTION=="add",SUBSYSTEMS=="usb",ENV{ID_TYPE}=="disk",ENV{ID_FS_T
YPE}=="vfat",SYMLINK+="usbfat"
ACTION=="add",SUBSYSTEM=="block",ATTRS{model}=="eTrexHCx
microSD",SYMLINK+="gps"
ACTION=="add",ATTRS{manufacturer}=="JMicron",ATTRS{product}=="USB
to ATA/ATAPI Bridge",SYMLINK+="usbext"
ACTION=="add",SUBSYSTEM=="block",ATTRS{idVendor}=="2237",ATTRS{id
Product}=="4173",SYMLINK+="kobo"
Notice the use of SUBSYSTEM and SUBSYSTEMS. It was important to use
the correct one.
Don't forget to reload the rules. I remember I had to run udevadm control
--reload-rules but it isn't in the man page any more so things may have
changed since then.
Frederic