Recently I imaged my slack install to a new machine.
I had udev rules set up to mount an external DVD and some other devices. These udev rules for were working prior to the new computer.
I'd put these rules in a new file, so as not to disturb the default setup. For reasons of priority, I'd set the filename to start with two zeros. This (in theory) forced my file to be evaluated before any of the other rules.
One specific example from that rules file, for the external DVD drive:
Code:
KERNEL=="sr[0-9]", SYSFS{model}=="USB 16X ", SYSFS{vendor}=="DVDRW ", NAME="%k", SYMLINK="dvdburner", GROUP="users"
The values for model and symlink were obtained from the actual drive and were verified by the fact that the above rule used to work.
In experimenting using trial and error to get it to work on the new computer, the rule has been changed to:
Code:
KERNEL=="sr1", NAME="%k", SYMLINK="dvdburner", GROUP="users"
The above line is silly because it fails to account for devices moving around (ie, it won't always be sr1). it's not a good permanent rule. However, in my testing session I'd already verified that the drive was on sr1. This silly rule should see that drive no matter what! I rebooted and yet still the
/dev/dvdburner" symlink was not created.
Is udev not running? No, that can't be it ... the machine would not be able to boot without udev.
Again:
- udev rules worked on computer 1
- linux was imaged to computer 2
- udev rules fail on computer 2
So ... what is wrong?