How can I know what the model of my cd which I need to fill in the cdrom symlink.

nadav vinik nadavlists at gmail.com
Mon Aug 7 14:23:23 PDT 2006


In the section Creating custom symlinks to devices
http://www.linuxfromscratch.org/lfs/view/stable/chapter07/symlinks.html

have example:
cat >/etc/udev/rules.d/82-cdrom.rules << EOF

# Custom CD-ROM symlinks
SUBSYSTEM=="block", ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F", \
    ENV{ID_REVISION}=="PS05", SYMLINK+="cdrom"
SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301", \
    ENV{ID_SERIAL}=="5VO1306DM00190", SYMLINK+="cdrom1 dvd"

EOF

Which model should I need to fill in ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F"?

Is there a list of available models?

I check in my ubuntu usev rules and there is:

# Create /dev/cdrom* symlinks for CD-ROM devices
BUS=="ide", KERNEL=="hd[a-z]|pcd[0-9]*", ACTION=="add", \
        IMPORT{program}="cdrom_id --export $tempnode"
BUS=="scsi", KERNEL=="sr[0-9]*", ACTION=="add", \
        IMPORT{program}="cdrom_id --export $tempnode"
ENV{ID_CDROM}=="?*",                    SYMLINK+="cdrom"
ENV{ID_CDROM_CD_RW}=="?*",              SYMLINK+="cdrw"
ENV{ID_CDROM_DVD}=="?*",                SYMLINK+="dvd"
ENV{ID_CDROM_DVD_R}=="?*",              SYMLINK+="dvdrw"



More information about the lfs-support mailing list