How do I ascertain which device file corresponds to my CD-ROM or DVD-ROM drive? Added: 03/05/02
To get the path of your CD-ROM or DVD-ROM device file:
$ CDROM=`ioscan -fkn -C disk | awk '{if(match($0,"(CD|DVD)-"))\
{getline;print $1}}'`
$ echo $CDROM
To verify that this device file path is correct:
$ ioscan -k $CDROM
or, as root:
# diskinfo `echo $CDROM | sed 's:^/dev/:/dev/r:'`
Home | FAQ |