A number of applications prefer or can only use certain devices (e.g., /dev/cdrom). In the default udev setup, these devices are not created. In my case, for example, I'll see /dev/hdc and a link /dev/cdroms/cdrom0 to /dev/hdc.
The problem I'm finding is that I can't get /etc/udev/rules.d/udev.rules to work. For example, I've added the following lines to this file:
KERNEL="hdc", NAME="hdc", SYMLINK="cdrom"
but this has no effect.
My "solution": add the following lines to /etc/rc.local
/bin/ln -sf /dev/hdc /dev/cdrom
On other machines, I've made similar tests and modifications for /dev/dvd and /dev/rdvd with exactly the same problems.
Does anyone know a better solution?
Should answer your questions but in short you need to create a file that will be read before the default udev rules. I named mine 00-udev.rules and in mine I only put:
# ide block devices KERNEL="hdc", SYMLINK="dvd"
I didn't bother to put in a 'NAME'.
Thanks. Works as advertised.
I'd been appending these rules to the end of udev.rules instead of following the suggestions of the Udev how-to. (This actually DID work with kernel 2.6.8.)