[Lvlug] verifying copied cd's
Linc Fessenden
linc@thelinuxlink.net
Fri, 10 May 2002 20:06:21 -0400 (EDT)
On Fri, 10 May 2002, jeff wrote:
> anybody know of a good way to verify copied CD's
>
> I inserted the original cd and did:
> mount /cdrom; cd /cdrom; du -a > ~/file1; cd; umount /cdrom; eject
>
> Then insterted the copied cd and did:
> mount /cdrom; cd /cdrom; du -a > ~/file2; cd; umount /cdrom; eject
>
> And then:
>
> diff -q file1 file2
>
> This should verify that the name and size of each file match; is there a
> better way?
>
> Jeff
Yup.. Use md5sum. Slap your cdrom in the drive and *without mounting it*
run md5sum on the block device, ie /dev/hdc or /dev/cdrom, or whatever it
is on your system, then run it again on your copy (be it ISO, or
another physical cd or whatever.... For instance on my system I would get
this result on a certain cd....:
sh-2.05$ md5sum /dev/cdrom
de1230b7817c882c0be9bb01debe3fda /dev/cdrom
sh-2.05$ md5sum cdcopy.iso
de1230b7817c882c0be9bb01debe3fda cdcopy.iso
sh-2.05$
--
-Linc Fessenden
In the Beginning there was nothing, which exploded - Yeah right...