md5sum of a ISO CD

Kevin Buettner plug-discuss@lists.PLUG.phoenix.az.us
Wed, 14 Nov 2001 14:48:45 -0700


On Nov 14,  2:26pm, Eric Thelin wrote:

> On Wed, 14 Nov 2001, Carl Parrish wrote:
> 
> > How do you get the md5sum of an ISO CD? I just burned a CD and want to
> > compare the md5sum against the image I have on disk. If I type in md5sum
>
> md5sum /your/path/file.iso /dev/cdrom
> 
> This will give the md5sum of the iso file and then read the cd itself to
> get the md5sum.  If the burn worked perfectly then these two will be the
> same.

Are you sure?  Won't ``md5sum /dev/cdrom'' also include the CD's table
of contents in its computations whereas ``md5sum /your/path/file.iso''
won't?  Also, what about multi-session CDs?

Kevin