CD/DVD disk reading test tool for Linux

data-cddvdrecordingtesting

When I was using DOS and Windows I've seen quite a selection of tools to check optical disks for readability and benchmark an optical drive itself. Most of them were even visualising the results in form of a pretty chart.

Are there any such for GNU/Linux OSes?

I'd prefer to have a full-featured visual GUI tool, but for the particular case I've got now, I just need to check if my CD drive can read every byte of a particular heavily-scratched CD-RW disk.

Best Answer

To simply see if a drive can be read, you can use dd(1). This will read in the contents of the CDROM and will ignore/discard the data (note that the CDROM device may have another name on your system):

 dd if=/dev/cdrom of=/dev/null

It is also possible to compare this to an ISO image:

dd if=/dev/cdrom | md5sum - /path/to/file.iso

This will print a checksum for the CD and for the ISO file. If the checksums match, the CD contents match the ISO image.

Related Question