About the cdrom symlink

Kevin P. Fleming kpfleming at linuxfromscratch.org
Sat Dec 18 08:02:48 PST 2004

sfs wrote:

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

Change "*[!0-9]" to "hdb", and you will be all set.

However, if you move your devices around, such that hdb is now the 
writer, or hdb is no longer a CD-ROM type device, then the link will not 
point where you want it to. Just a friendly warning :-)

More information about the lfs-support mailing list