Secure Erase is a feature built into every HDD and SSD since 2001.
Secure Erase is a NIST standard that is equivalent to physical destruction.
No information is recoverable, no headers, no metadata, no bad blocks, no hidden partitions…100% wipe.
The easiest way to access the Secure Erase feature is using: hdparm
# hdparm -I /dev/X
(Replace /dev/X with /dev/sdx: Use ‘fdisk -l’ to see what they’re named.)
This will check to see what state the drive is in.
It will say ‘frozen’ or ‘not frozen’. If ‘not frozen’ then you can proceed with the directions for setting a password and executing Secure Erase.
If it says ‘Frozen’ you can check the Bios to see if you can change the ‘frozen’ state. If not…
Then you have to ‘hot replug’ if that feature is supported. After first booting into linux, unplug and replug in the HDD. This will change the state from ‘frozen’ to ‘not frozen’.
READ about your drives features, is hot replugging possible?
NVME’s require power to be disabled before unplugging the drives. Know your drive technology.
I have not personally used Secure Erase on any NVME drives so I don’t know if it will work on them. With a little research it shouldn’t be too difficult to determine if it will.
The easiest way to use ‘hdparm’ is with a linux iso on a flash drive. Not all linux distro’s include hdparm by default, because it’s a very powerful low level tool that can be a foot gun.
Ubuntu 10.10 iso has ‘hdparm’ without the need to update and download as in other iso’s. Many distro’s stopped shipping with ‘hdparm’ after this point in Linux. (Fedtards didn’t like people being able to nuke their drives. They attacked the kernel.org ata wiki deleting the secure erase entry and had distro’s remove ‘hdparm’ from the iso’s. Fun days.)