tar(1) supports ISO9660:
% tar tf image.iso
% tar tf /dev/acd0
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
If I remember correctly, the GNU version of md5 can read a file and check the files automatically, but it seems BSD md5 doesn't have this functionality...