Fast secure erase of /dev/nvme0n1 using Ubuntu 22.04 LTS live


Check your disk:
sudo -i
apt install nvme-cli
nvme list

Erase your disk:
nvme format -s1 /dev/nvme0n1

Verify it is really all zeros:
cmp /dev/nvme0n1 /dev/zero

Verify with a progress bar:
apt install pv
pv /dev/nvme0n1 | cmp /dev/zero

Really all zeros:
cmp: EOF on after byte 512110190592, in line 1

Not really all zeros:
/dev/zero differ: byte 449, line 1

Thanks

No Get-FileHash? Use CertUtil instead. Built in Windows 7, 10, and 11 Without power tools.


Most are familiar with
Get-FileHash .\Linux.iso

What about an old or restricted windows system that does not have it and you
cannot install programs?

CertUtil is a another pre-installed Windows utility that can be used to
generate hash checksums:

certutil -hashfile .\Linux.iso SHA256

HashAlgorithm choices: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

You can also drop files on the tiny md5sums
Thanks
Thanks