md5sum on CD
Stewart C. Russell
scruss-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Mon Nov 21 19:38:33 UTC 2005
Moniz Family wrote:
> I'm having some problems burning CDs and am trying to check whether it's
> the burner or the CDs. One of the things I'd like to do, but can't
> figure out from the man pages, is to run an md5sum on the entire CD to
> compare to the ISO image I downloaded.
Do you mean create an md5sum of all the files in a tree? This is what I use:
# md5here - do md5sum of tree to stdout; defaults to $PWD,
# otherwise first arg is top level of tree.
# don't send output to somewhere in the tree or you get
# a file that fails checksum... ;-)
find `pwd` -type f -print0 | xargs -0 md5sum -b | sed "s,`pwd`/,,;"
> Is there a way to do this without
> first making another ISO image from the CD?
You should be able to mount the ISO image using something like:
mount -o loop -t iso9660 filename.iso /mnt/iso
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy