Introduction
The NVMe 1.3 specification introduced a host of new features, including Sanitize. Alas, it is an optional feature (per section 8.15, "Sanitize Operations (Optional)" of NVM Express Revision 1.3b), as I discovered after purchasing a drive which advertised that it "follows NVMe 1.3".
Peter Onufryk outlines NVMe Sanitize benefits over NVMe format/Secure Erase in Major New Features in NVMe 1.3 and Looking to the Future:
- Once Sanitize has been initiated, it keeps running until complete (surviving reboots, etc.)
- Format erases all data in namespace, but Sanitize additionally erases any cache or buffer data
- Any log page metadata is also erased
Usage
0. Install nvme-cli
The nvme-cli README.md includes installation instructions for a number of Linux distribution