Recherche
Ask a question »

Linux - Check if your CD was successfully burned

April 2015


[Linux] Check if your CD was successfully burned





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.


For unlimited offline reading, you can download this article for free in PDF format:
Linux-check-if-your-cd-was-successfully-burned.pdf

See also

In the same category

Original article published by kilian. Translated by jak58.
This document entitled « Linux - Check if your CD was successfully burned » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.