[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compare iso to cdrom image

On Friday 21 January 2005 19:13, Ron Johnson wrote:
> How about:
>   dd bs=512 if=/dev/hdd | md5sum

That will generate a different sum if there are any padding sectors after the 
iso on the cdr.
If so it may need:
dd if=/dev/hdd bs=2048 count=X |md5sum
where X is "No of 1k Blocks"/2 that you get from:

mount /dev/hdd somemountpoint && df

Some boxes, I have one such, don't like dd from a cdburner in which case:

readcd dev=/dev/hdd f=- sectors=0-X |md5sum

Bob Parker

Reply to: