Solved How to CHECKSUM.SHA256

I need to make sure that I'm using CHECKSUM correctly. I just downloaded FreeBSD-11.0-CURRENT from http://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/11.0/ and this is my first time ever trying to do a checksum.

I downloaded FreeBSD-11.0-CURRENT-amd64-20141025-r273635-disc1.iso. From my flash drive, I moved the file to the root area on my 10.0 box and then I typed this command:
Code:
# cd /
# /usr/local/bin/shasum FreeBSD-11.0-CURRENT-amd64-20141025-r273635-disc1.iso
9eb5768499d6aaea4f6b224a0d40349c1d670ea0  FreeBSD-11.0-CURRENT-amd64-20141025-r273635-disc1.iso

CHECKSUM.SHA256-11.0-CURRENT-amd64-20141025-r273635 says:
Code:
SHA256 (FreeBSD-11.0-CURRENT-amd64-20141025-r273635-bootonly.iso) = 
b5649d93f9299689dbaba18b9c4b7e934fcf4fed357ac50be30d21f4ae79d900
SHA256 
(FreeBSD-11.0-CURRENT-amd64-20141025-r273635-bootonly.iso.xz) = 
e4a8f5f554c4f1a5523ef076e2f3360ff695d634ef1fa77ef0241320eb7dc50c
SHA256 
(FreeBSD-11.0-CURRENT-amd64-20141025-r273635-disc1.iso) = 
945e04562204c4d448ea8d58077529f89a6fa229a6b7fa792e85a0b6793099ff
SHA256 
(FreeBSD-11.0-CURRENT-amd64-20141025-r273635-disc1.iso.xz) = 
84bbd5b326f4b88b941a82b2505e573be1d72cae55dc5bc7a6e345c3f4b7a2da

This sum does not match. What happened? I refuse to believe that FreeBSD could have made such a mistake. Have I done something wrong? I am now very paranoid. Could it be my download was intercepted or something? If not, where do I download the correct file?
 
Have you tried explicitly specifying the SHA256 algorithm by using shasum [B]-a 256[/B] /FreeBSD-11.0-CURRENT-amd64-20141025-r273635-disc1.iso?
 
As you can notice by comparing the checksum you got with all the others
Code:
9eb5768499d6aaea4f6b224a0d40349c1d670ea0

b5649d93f9299689dbaba18b9c4b7e934fcf4fed357ac50be30d21f4ae79d900
e4a8f5f554c4f1a5523ef076e2f3360ff695d634ef1fa77ef0241320eb7dc50c
945e04562204c4d448ea8d58077529f89a6fa229a6b7fa792e85a0b6793099ff
84bbd5b326f4b88b941a82b2505e573be1d72cae55dc5bc7a6e345c3f4b7a2da
you're not generating an SHA256 checksum, but an SHA1 checksum. shasum(1) says it uses SHA1 by default and you can override it with a shasum -a256 <filename>. Or you could use sha256(1).
 
shasum -a 256 /FreeBSD-11.0-CURRENT-amd64-20141025-r273635-disc1.iso

So that's the way it’s done. I searched for over a half hour and the only thing I found that came close was for OpenBSD which did not work for FreeBSD because I did not know how to modify it. Thank you very much fonz, and thank you too Beastie for the additional information.
 
Back
Top