View Single Post
Old 12th May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

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...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote