checking a burned CD against an ISO
Lennart Sorensen
lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed May 23 14:50:12 UTC 2007
On Wed, May 23, 2007 at 12:26:18AM -0400, Chris F.A. Johnson wrote:
> >FILESIZE=$(stat -c%s "$ISO_FILENAME")
> >DISK_MD5=`dd if=$DEVICE | head -c $FILESIZE | md5sum`
>
> No need for more than one external command:
>
> DISK_MD5=$( md5sum "$DEVICE" )
Unless the linux kernel has somehow recently got a clue about reading
optical media without trying to read past the end of the device, then
that 'head' command is probably quite useful.
--
Len Sorensen
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list