firmware sanitise

Erasing a drive with a command built into its own firmware, so the drive's controller wipes every storage area, including hidden spare space.

In more detail

Flash drives keep data in cells the operating system cannot address, so software overwrites miss them, but the drive's controller knows where everything is. Standard commands, such as the NVMe sanitize operation and the older secure erase commands, tell it to erase all user data, often by resetting blocks or replacing an internal encryption key. These count as purge methods, but some drives have implemented them badly, so verify the result and prefer drives with documented, tested support.

Examples

nvme sanitize /dev/nvme0 --sanact=2   # block erase with nvme-cli
hdparm --user-master u --security-erase p /dev/sdX   # ATA Secure Erase, after setting password p with --security-set-pass

Related terms

Taught in

References