New answers tagged file-comparison
IMO, the best (easiest) way to do this is to when using dd, use a byte size (bs=) that can be evenly divided into your source file. This results in a whole number of block writes. Then you can reverse the process (read it back) ensuring the exact number of bytes are read by us both bs= and count= in the read command - and pipe it through the checksum program....
Top 50 recent answers are included