How to securely erase any drive: NVMe, SSD, HDD & SAS

There's no single "wipe" command that's right for every drive. The correct method depends on what the drive is — and each type erases differently.

t tScrub Team Last updated 22 Sep 2026 8 min read

The golden rule of data erasure is simple: let the drive's own controller do the work when it can. Firmware-level commands reach parts of the media that software alone can't — reserved sectors, reallocated blocks, and the over-provisioned area on an SSD.

In this series:

NVMe SSDs

NVMe drives support the Sanitize command, which is the strongest erasure available. There are three modes:

Where Sanitize isn't supported, NVMe drives can also be formatted with the Format NVM command, which clears the logical namespace.

SATA SSDs

SATA SSDs use the ATA command set. Their best erasure is ATA Secure Erase (or the stronger Enhanced Secure Erase), which tells the SSD controller to erase all stored cells, including areas not visible to the operating system. This is dramatically faster and more complete than writing zeros from software.

Hard disk drives

Spinning drives also speak ATA, so ATA Secure Erase and Enhanced Secure Erase apply here too — the drive's own controller overwrites every sector, including reallocated and bad sectors that software can't reach. When a drive doesn't support firmware erasure, a software overwrite is the fallback.

SAS & SCSI drives

Enterprise SAS drives use the SCSI command set. Many support SCSI SANITIZE directly; where they don't, a software overwrite (tScrub uses nwipe for this fallback) is the standard approach. SAS drives are common in decommissioned servers, so this path matters in data-centre work.

Self-encrypting drives (SED / OPAL)

Self-encrypting drives hold their own encryption key. Two things come up:

Frozen, blocked, and locked drives

Drives can arrive frozen (the BIOS has issued a security-freeze lock, which blocks erasure until a power cycle), locked (an unknown ATA password is set), or blocked (Block SID lockdown). tScrub detects each case, attempts the appropriate unlock or power-cycle sequence, and — where erasure still isn't possible — flags the drive for physical destruction rather than silently pretending it was wiped.

Which method does tScrub choose?

DriveBest methodFallbackNIST 800-88
NVMe SSDSanitize (crypto / block / overwrite)Format NVMPurge / Clear
SATA SSDEnhanced Secure EraseSecure ErasePurge / Clear
HDDEnhanced Secure EraseSecure Erase, overwritePurge / Clear
SAS / SCSISCSI SanitizeSoftware overwritePurge / Clear
Locked SEDPSID revert, then erase—Purge
Frozen / blockedPower-cycle & retryPhysical destructionDestroy

FAQ

Why not just use dd to zero the drive?

dd only touches what the OS can see. It misses reallocated sectors, the SSD over-provisioned area, and is far slower. Use it only when the drive supports nothing better.

Does wiping wear out an SSD?

A single Secure Erase or Sanitize is a normal, supported operation and doesn't meaningfully shorten drive life. Repeated full overwrites, by contrast, write the entire drive many times over and are harder on the flash.

Keep reading

Let tScrub pick the right method

It classifies every drive, chooses the strongest supported erase, and records it in the report.

Get tScrub