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.
The following command compares the contents of two binary files, and print the offset of the first differing byte. Replace
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,
I assume from your post that you are on Linux.
See this article : Verify a burned CD/DVD image on Linux.
The main idea is simple :
Since the question is not OS-specific and Windows users may find their way here, I’ll suggest that a relatively easy way to accomplish this on Windows is to mount the ISO (OSFMount is particularly good), then compare (e.g., with WinMerge) the CD/DVD drive root with the mounted volume root:
Insert DVD, usually mounted on d:
Mount the .iso with VCdControlTool.exe, e.g. on z:
From cmd, run:
It might take a while.
Caveat: WinMerge runs out of memory with big files.
Here are the correct steps to verify 256sum of the iso before and after burning.
determine iso sha256sum..
then determine size of iso in bytes...
then dd your cd/dvd drive |then count the first bits of each file to sum |then read its sha256sum
Substitute /dev/sr0 with /dev/cdrom or other drive name depending on system.
For a better DD experience and to view dd's progress in real-time without having to write a script, use dcfldd the forensic dd (dcfldd can port to 2 different outputs as well.)
(shamelessly stolen from an article on unbutu.com)