Secure erase
sudo smartdisk wipe disk6 -o cert.pdfwipe erases a disk before it is sold or given away, and documents it:
- Overwrites every sector once with zeros: NIST SP 800-88 “Clear” for hard disks. More passes add nothing on today’s drives.
- 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. - Formats the disk as exFAT (
-no-formatleaves it empty). - 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.
The certificate
Section titled “The certificate”| 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:
smartdisk pdf -from cert.json -o cert.pdfsmartdisk upload -from cert.json # certificate ID HE-…, listed with the drive's reportssmartdisk pdf -from cert.json -cloud # bothThe same protections as for format apply. In SmartDisk for Mac: Read test → Erase Securely….