Quote:
Originally Posted by Carpetsmoker
More reliable would be:
Code:
# mdconfig -at vnode -f image.iso
# mount -t cd9660 /dev/md0 /mnt/md0
# cd /mnt/md0
# find . -type f -exec md5 {} \; > ~/MD5.img[/cmd]
# cd -
# umount /mnt/md0; mdconfig -du0
[burn image]
# mount -t cd9660 /dev/acd0 /mnt/acd0
# cd /mnt/acd0
# find . -type f -exec md5 {} \; > ~/MD5.disc
# diff -u ~/MD5.img MD5.disc
|
this method has the advantage that you would know which files are corrupted.
but if you just want to check if the cd is an corrupted or not:
$ md5 < image.iso > image.md5
[burn image]
$ dd < /dev/acd0 bs=2k | md5 | cmp - image.md5 && echo Ok