Stacy Mader <[EMAIL PROTECTED]> asked:
> I'd like to do a cksum on the original list of files and
> the ISO image created by mkisofs. If possible, I'd like
> to check if the image was successfully transferred to
> disk via cdrecord - basically I'd like to run something
> like cksum on the three sources to see if I get the same
> result.
>
> Can this be done with mkisofs and cdrecord?
If you are running Linux, yes. For Solaris ask Joerg, and for anything
else you're on your own.
For Linux you need to mount the image you have created and then run
cksum (or better yet md5sum) on the filesystem.
Sort of like:
mkisofs -o /tmp/foo.iso foo
cd foo; find . -type f | xargs md5sum >/tmp/foo.md5
mount -o ro,loop /tmp/foo.iso /mnt
cd /mnt
md5sum -c /tmp/foo.md5
cd /tmp; umount /mnt
cdrecord dev=1,2,3 /tmp/foo.iso
mount -r /dev/sr0 /cdrom
cd /cdrom; md5sum -c /tmp/foo.md5
That checks both the image and the CD after burn (I almost never both
checking the image, just the CD). Notes: before doing the loopback mount
you may have to "insmod loop" as root. If you built your own kernel you
need loop device support.
That should get you started, you will want to understand the steps
rather than try to follow this exactly, of course.
--
-bill davidsen ([EMAIL PROTECTED])
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]