Linux - Check if your CD was successfully burned

January 2017





Intro


Under Linux there is a small utility that allows you directly to verify file integrity by comparison. It is call md5sum that calculates the md5 sum of a file.
  • You will often notice that for some sites the md5sum of a file available with the download linl.
  • Once you've downloaded your file, just type in a shell:
    • md5sum path_of_file
  • And you will get the md5sum of the file and from there you can compare with that offered by the site. It ensures the integrity of a download.
  • This concept can be used in the same way to check if your CD has been successfully burned.
  • Simply by comparing the .iso file to the burned CD.
    • Note that under Linux you have direct access your devices through the /dev directory
  • In this directory, the CDs are often represented by their ide path:
    • /dev/hdX(where X is the letter of the location of the cdrom on the ide layer)
  • The master of the first layer is /dev/hda
  • The slave of this layer is /dev/hdb
  • The master of the second layer is /dev/hdc etc. .....

Notes

  • But you can also have shortcuts with /dev/cdrom0 /dev/cdrom1 ....

Implementation


Consider that your burner is the master of the second IDE layer:/dev/hdc
  • After burning your iso image, you just have to do a sum on your iso file:
    • md5sum path_of_iso
  • And compared with the sum of your burned CD:
    • md5sum /dev/hdc
  • If the md5sum is the same for both, then your burn is successful.


Related


Published by jak58. Latest update on December 15, 2010 at 09:20 AM by jak58.
This document, titled "Linux - Check if your CD was successfully burned," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).