Le septidi 7 fructidor, an CCXXIV, Andrew McGlashan a écrit : > Get the byte size of the ISO file and make sure that you only test > exactly that many bytes from the /dev/sdb device. > > Divide the number of bytes with say 40960 and then multiply the answer > with 40960 to see that you get the same total number of bytes, then do > something like this: > > dd if=/dev/sdb bs=40960 count=[Exact count of 40960 to match ISO size] | > sha512sum - > > > For example, say the ISO is 1052835840 bytes in size: > > # bc > bc 1.06.95 > Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software > Foundation, Inc. > This is free software with ABSOLUTELY NO WARRANTY. > For details type `warranty'. > 1052835840/40960 > 25704 > 25704*40960 > 1052835840 > > dd if=/dev/sdb bs=40960 count=25704 |sha512sum -
"head -c 1052835840 /dev/sdb | sha512sum" feels simpler. UUodd.
signature.asc
Description: Digital signature