I was wondering if there was any way people could verify their CD's md5sum against the 'official' one from the distro site.
Hi there
I had this very same problem the other day. I found a couple of ways round it. The simplest solution is if you use something like k3b. K3b has an option to verify the md5sum of the written data against that of the image you are trying to burn. I'm using version 0.11.6. From this it is obvious that there is a way of doing md5sums on cds, you could look in the k3b source to find out how. I have no idea.
I have a second method which will compare an iso with the contents of the cd it produces. I devised this method to find out which files differ from the original when I found that my cd burner is somewhat dubious in its abilities. So it is bit overkill, but it will find out if there is a difference in any single file. Basically mount the iso like this:
mount -o loop -t iso9660 <iso file name> <some_directory_for_iso>
and mount your cd Then write a script that will do an md5sum on every file on each directory kinda like this:
#!/bin/bash
current=`pwd` cd $1 for i in `find .`; do [ -f $i ] && [ -s $i ] && md5sum $i done cd $current
save it as say getmd5 and make it executable.
chmod u+x getmd5
the script will get the md5sum of every individual file and print it to standard output. So now you can do something like
#<path to getmd5>/getmd5 <some_directory_for_iso> > md5iso #<path to getmd5>/getmd5 <your_cd_mount_directory> > md5cd
If everything was ok both command should produce the same output so
#diff md5iso md5cd
will verify that and show the differences if there are any. I have to stress that is a very over the top way of doing things it also takes a while to run on big cds but it's nice if you want to pinpoint the failures and at it should solve your problem.
Cheers
Charles