If you’ve come across some commands that require the actual device name of your CD/DVD drive (eg: /dev/dvd), rather than the mount point (eg: /media/cdrom0), it pays to know what it is, as commands won’t work if they’re looking in the wrong place. There are a couple of ways of doing this, and you’ll probably find they give conflicting outputs, but where one is not useful to you, the other will be; for example, if your drive is both /dev/scd0 and /dev/sr0, you might find /dev/sr0 works for most commands, and where it fails /dev/scd0 won’t.
To find out the name of the block device file representing your optical disc drive, enter the following into a terminal, without a disc in the drive:
The information will be displayed as follows:
wodim: Overview of accessible drives (1 found) :
0 dev=’/dev/scd0‘ rwrw
-- : ‘ASUS’ ‘DRW-24B1ST’
If there is a disc in the tray, you will see the following error, so just eject the disc and run the command again:
wodim: No such file or directory.
Cannot open SCSI driver!
For possible targets try ‘wodim
or ‘wodim -scanbus’.
For possible transport specifiers try ‘wodim
For IDE/ATAPI devices configuration,
see the file README.ATAPI.setup from
the wodim documentation.
To find out the name of the block device file representing your optical disc drive, as well as its mount point, enter the following into a terminal:
The output will look as follows:
/dev/sda3 on / type ext4 (rw)
/dev/sda1 on /media/Windows XP type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sr0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,unhide,user=ozzman)
Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!