The CentOS wiki pages seem to be down. I'm right in the middle of attempting to make a bootable USB thumb drive, but would like to verify the thumb drive before attempting to install.
I ran sha256sum on the ISO itself that I dd'd to the thumb drive, but now, I don't know how to check the sha256 sum of the thumb drive.
I believe it'd be something like this:
Code: Select all
dd if=/dev/sdc bs=4096 count=144896 | sha256sum
My hypothesis is that count is equal to the number of bytes long the ISO is, divided by 4096 (because we specify that we want to read 4096 bytes at a time). The correct command would therefore be something along the lines of:
Code: Select all
dd if=/dev/sdc bs=4096 count= $(($(stat -c '%s' CentOS-7-x86_64-DVD-1804.iso) / 4096)) | sha256sum
I am a little confused as to why I cannot simply run sha256sum on /dev/sdc. I used dd to write the ISO image to the thumb drive. Shouldn't the ISO now be a 1:1 copy of the thumb drive, and vice-versa?
Thank you!