[Cialug] rip an ISO
Paul Gray
gray at cs.uni.edu
Mon Nov 7 11:05:27 CST 2005
On Mon, Nov 07, 2005 at 05:50:57AM -0600, Dave Weis wrote:
> Paul Gray wrote:
> >
> >dd bs=`isoinfo -i /dev/cdrom -d| grep "block size is" | awk -F": " '{print
> >$2}'` if=/dev/cdrom count=`isoinfo -i /dev/cdrom -d |grep "Volume size"|
> >awk -F": " '{print $2}'` | md5sum
> >
> >If the md5sum matchs, substitute 'of=debian.iso' for the final pipe to
> >md5sum.
>
> Does that just skip over the header stuff burned on the disk and md5sum
> the data portion?
Yes and no. All it does is the same original dd command setting the block
size to 2k and doesn't assume EOF=end of data.
I'm certain that the same md5sum would be generated with:
dd if=/dev/cdromof=debian.iso bs=2k
It's always better to ask (the iso image) than assume things (like block
size and number of blocks).
--
Paul Gray -o)
323 Wright Hall /\\
University of Northern Iowa _\_V
Message void if penguin violated ... Don't mess with the penguin
No one says, "Hey, I can't read that ASCII attachment ya sent me."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://cialug.org/pipermail/cialug/attachments/20051107/3f2098f1/attachment.pgp
More information about the Cialug
mailing list