* 2025-11-07 15:35:20-0500, hlyg wrote:
> is it possible to verify usb stick with sha256sum without corresponding
> iso file?
>
> i read sha256sum manual, no option for file size
The "no option for file size" part can be worked-around with "head -c".
That is, if you know how many ${bytes} you want to read from the
${device} (or any file) you can use:
head -c ${bytes} ${device} | sha256sum
For example:
head -c 4127195136 /dev/sdc | sha256sum
--
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: DD3B8E8ABD28B98176E6A7CCCC9A5E615FCC1D93
/ old key: 6965F03973F0D4CA22B9410F0F2CAE0E07608462
Attachment:
signature.asc
Description: PGP signature