| Home Profile Fun |
#169 Linux 04.02.2009
How to burn a DVD image with growisofs and verify itIn the past days I had some trouble with a burned iso image. Although the burn process did not produce any errors, the image was corrupt. Finally I chose a different vendor and verified that the md5 sum of the DVD was identical to the original md5 sum. And of course then everything just worked. So here are the very few steps necessary to do the burning and the verification. Burn the DVD iso image to a DVD which is located at /dev/dvd growisofs -Z /dev/dvd=./xyz.iso The data is written in 2048 byte blocks to the DVD. We have to find out how many of these blocks have been written. Print the size of the iso image.
ls -l xyz.iso | awk '{print $5}'
4658399232
Now divide this size by 2048 and you have the number of blocks written to the disc which is 2274609.Let's create both md5 sums and make sure that they are identical. md5sum xyz.iso 2afee1b8a87175e6dee2b8dbbd1ad8e8 xyz.iso Enter here the number of blocks you have calculated before. dd if=/dev/dvd bs=2048 count=2274609 | md5sum 2274609+0 records in 2274609+0 records out 2afee1b8a87175e6dee2b8dbbd1ad8e8 - 4658399232 bytes (4.7 GB) copied, 395.065 seconds, 11.8 MB/s Of course this md5 sum must be the same as the original one which is printed on the website where you downloaded the iso image. |