[H-GEN] verifying Burnt CDs

Jason Parker-Burlingham jasonp at uq.net.au
Tue Dec 24 12:46:12 EST 2002


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Brenton Bills <billsb at optushome.com.au> writes:

> You could also try mounting the iso image on the loopback or how ever
> you do it (I know freebsd method, never tried in linux) and check that
> the individual files have the same md5sums to that of the files on the
> cd.
> 
> Something like,
> 
> find . /cdmountpoint -exec md5sum {} \; > output
> find . /isomountpoint -exec md5sum {} \; > output2
> 
> diff output output2
> 
> Might work.

That'll work, but I find it's easier to simply use md5sum in its
sum-checking mode (GNU md5sum support this, at any rate):

$ cd .../loopback
$ find . -type f -exec md5sum {} \; | ( cd .../originals; md5sum -c )
$ echo $?

You may or may not want to add the -v option to md5sum to be verbose
about things; otherwise (IIRC) you have to rely on the return value of
the process (hence the check of $?).

It's also possible to use xargs or something to avoid re-execing
md5sum umpty-gazillion times, but usually the care factor is pretty
low.

HTH.
-- 
||----|---|------------|--|-------|------|-----------|-#---|-|--|------||
| ``I think I'm going to throw up.''                                    |
|                                             -- Kermit the Frog, Yambo |
||--|--------|--------------|----|-------------|------|---------|-----|-|

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list