Home Download Ubuntu

How to verify the integrity of your Ubuntu CD with md5sum

Every Ubuntu CD has a file called md5sum.txt on it's root. We can check for the integrity of Ubuntu CD (already burned) or we can check for it's integrity from the .ISO file we downloaded.

1.Check the Ubuntu CD already burned:

We can check it's integrity by mounting the CD and check the md5sum.txt file:

a.To mount CD:

sudo mount /dev/hda /cdrom


cd /cdrom
md5sum -c md5sum.txt


2.Check the Ubuntu CD .ISO file:

we make an iso folder to mount to

sudo mkdir /media/iso


mount the iso file

sudo mount -o loop ubuntu-9.10-desktop-i386.iso /media/iso/


check the md5sum

cd /media/iso/


md5sum -c md5sum.txt


Result:

Both methods require some time to be processed and at the end of each file it will tell us that is OK, something like this:

./casper/initrd.lz: OK
./casper/filesystem.manifest: OK
./casper/filesystem.manifest-desktop: OK
./casper/filesystem.squashfs: OK
./casper/vmlinuz: OK
./dists/karmic/Release: OK
./dists/karmic/restricted/binary-i386/Packages.gz: OK
./dists/karmic/restricted/binary-i386/Release: OK
./dists/karmic/Release.gpg: OK
./dists/karmic/main/binary-i386/Packages.gz: OK
./dists/karmic/main/binary-i386/Release: OK
./pics/blue-upperright.png: OK
./pics/blue-lowerleft.png: OK
./pics/blue-upperleft.png: OK
./pics/logo-50.jpg: OK
./pics/red-upperright.png: OK
./pics/red-upperleft.png: OK
./pics/red-lowerright.png: OK
./pics/red-lowerleft.png: OK
./pics/debian.jpg: OK
./pics/blue-lowerright.png: OK
./.disk/casper-uuid-generic: OK
./.disk/release_notes_url: OK
./.disk/cd_type: OK
./.disk/base_installable: OK
./.disk/info: OK
./autorun.inf: OK
./install/README.sbm: OK
./install/sbm.bin: OK
./install/mt86plus: OK
./preseed/ubuntu.seed: OK
./preseed/ltsp.seed: OK
./preseed/cli.seed: OK
./pool/restricted/b/bcmwl/bcmwl-kernel-source_5.10.91.9+bdcom-0ubuntu4_i386.de OK
./pool/restricted/s/sl-modem/sl-modem-daemon_2.9.11~20080817-3ubuntu3_i386.debOK
./pool/main/n/ndisgtk/ndisgtk_0.8.4-1_i386.deb: OK
./pool/main/n/ndiswrapper/ndiswrapper-utils-1.9_1.54-2ubuntu1_i386.deb: OK
./pool/main/n/ndiswrapper/ndiswrapper-common_1.54-2ubuntu1_all.deb: OK
./pool/main/b/build-essential/build-essential_11.4_i386.deb: OK
./pool/main/b/b43-fwcutter/b43-fwcutter_012-1_i386.deb: OK
./pool/main/d/dpkg/dpkg-dev_1.15.4ubuntu2_all.deb: OK
./pool/main/d/dkms/dkms_2.1.0.1-0ubuntu1_all.deb: OK
./pool/main/g/gcc-4.4/g++-4.4_4.4.1-4ubuntu8_i386.deb: OK
./pool/main/g/gcc-4.4/libstdc++6-4.4-dev_4.4.1-4ubuntu8_i386.deb: OK
./pool/main/g/gcc-defaults/g++_4.4.1-1ubuntu2_i386.deb: OK
./pool/main/u/ubiquity/oem-config_2.0.8_all.deb: OK
./pool/main/u/ubiquity/oem-config-gtk_2.0.8_all.deb: OK
./pool/main/m/mouseemu/mouseemu_0.16-0ubuntu4_i386.deb: OK
./pool/main/f/fakeroot/fakeroot_1.12.4ubuntu1_i386.deb: OK
./pool/main/p/pptp-linux/pptp-linux_1.7.2-3_i386.deb: OK
./pool/main/p/patch/patch_2.5.9-5_i386.deb: OK
./pool/main/l/linux-wlan-ng/linux-wlan-ng-doc_0.2.9+dfsg-2ubuntu2_all.deb: OK
./pool/main/l/linux-wlan-ng/linux-wlan-ng_0.2.9+dfsg-2ubuntu2_i386.deb: OK
./pool/main/l/lupin/lupin-support_0.27_all.deb: OK
./pool/main/s/setserial/setserial_2.17-45_i386.deb: OK
./wubi.exe: OK
./README.diskdefines: OK


Resources: Ubuntu help

4 comments:

shivshankaran said...

THANK YOU VERY MUCH. I DON'T HAVE ANY OTHER WORD THAN THIS. REPEATING THE SAME. THANK YOU AGAIN.

sinisterstuf said...

I was going to write a script to find every file on the disk, calculate its md5sum and look for that in the file, luckily I read this, now I won't have to! :D

William Crandell said...

Thanks for the simple guide on how to check a Ubuntu CD or ISO file by file another way is to check the entire CD or ISO as described in the guide here:
https://help.ubuntu.com/community/HowToMD5SUM

William Crandell said...

Also for got to mention that you may want to grep the output for failed so it is easier to see:
md5sum -c md5sum.txt | grep "FAILED"

Post a Comment