You are not logged in.

#1 2004-10-30 19:39:24

Win
Member
Registered: 2004-03-04
Posts: 155

kernel 2.6.9 and udev.rules issues

Hi all.

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:

# cdrom
KERNEL="hdc",           NAME="hdc", SYMLINK="cdrom"

but this has no effect.

My "solution": add the following lines to /etc/rc.local

# cdrom
/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?

Regards,

Win

Offline

#2 2004-10-30 21:20:00

skeeterbug
Member
From: Oklahoma, USA
Registered: 2004-10-24
Posts: 92
Website

Re: kernel 2.6.9 and udev.rules issues

http://wiki.archlinux.org/index.php/UdevHowTo

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'.

Offline

#3 2004-10-30 21:43:15

Win
Member
Registered: 2004-03-04
Posts: 155

Re: kernel 2.6.9 and udev.rules issues

Hi skeeterbug.

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.)

Regards,

Win

Offline

Board footer

Powered by FluxBB