About the cdrom symlink

sfs wfw at f.es
Sat Dec 18 08:46:39 PST 2004


I'm with LFS-6.0. I've a CD-R and a CD-RW, called by udev /dev/hdb
and /dev/hdc.

The problem is that the /dev/cdrom sysmlink automatically generated goes
to /dev/hdc (the writer), and i'd like that it'd be point to /dev/hdb.

I've been investigating, and appears that the syslink is created by the
rules written in "/etc/udev/rules.d/50-udev.rules" (or is with
the /etc/udev/rules.d/25-lfs.rules???). What appears in that file:

BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media",
RESULT="cdrom", NAME="%k", SYMLINK="cdrom"

I don't understand it, at least, to changing it to do what i want.

How could i change it to making the sysmlink /dev/cdrom --> /dev/hdb??



More information about the lfs-support mailing list