Skip to content

Secure erase

Terminal window
sudo smartdisk wipe disk6 -o cert.pdf

wipe erases a disk before it is sold or given away, and documents it:

  1. Overwrites every sector once with zeros: NIST SP 800-88 “Clear” for hard disks. More passes add nothing on today’s drives.
  2. Reads back the first and last MiB and 1,000 random spots (-verify full: everything) and keeps a SHA-256 over all bytes read. Any spot that is not zero or cannot be read is reported.
  3. Formats the disk as exFAT (-no-format leaves it empty).
  4. Writes an erasure certificate: drive (model and serial from SMART, otherwise the USB serial number), capacity, media, method, how it was checked, start, end and result.
Option Effect
-o cert.pdf Write the certificate as a PDF
-save cert.json Keep the certificate as JSON

A saved JSON certificate can be turned into a PDF or stored in the cloud later:

Terminal window
smartdisk pdf -from cert.json -o cert.pdf
smartdisk upload -from cert.json # certificate ID HE-…, listed with the drive's reports
smartdisk pdf -from cert.json -cloud # both

The same protections as for format apply. In SmartDisk for Mac: Read test → Erase Securely….