I have an ISO file and a DVD burned from that ISO file. Is there a way I can validate that the DVD contains the same as the ISO file and that nothing is wrong with the DVD?
I have the tools available on the System Rescue CD.
comparisondvdiso-image
I have an ISO file and a DVD burned from that ISO file. Is there a way I can validate that the DVD contains the same as the ISO file and that nothing is wrong with the DVD?
I have the tools available on the System Rescue CD.
Best Answer
The following command compares the contents of two binary files, and print the offset of the first differing byte. Replace
/dev/dvd
by the path to the DVD device (/dev/cdrom
,/dev/scd0
,/dev/hdc
, …).I'm not sure if all DVDs contain an indication of where the data ends (I think some CDs don't); you can limit the comparison to the size of the image file.
You can also compute a checksum for the image file, compute a checksum for the disk, and check that they match. This is slower for a single comparison, but faster if you need to compare many disks against one image, and allows the image and the disk to be on different computers. To detect accidental corruption,
md5sum
is perfectly suitable.