Sub topic 6
Data Destruction and Secure Disposal
This chapter assumes you know the basic storage types (HDD, SSD, optical media, flash) and can run commands at a prompt. You should also know that deleting a file does not remove its contents from the drive.
Why Deleting Is Not Enough
Deleting a file, or running a quick format, removes only the pointer to the data. The bits stay on the media until something overwrites them, so recovery tools can restore them. Before a drive is reused, sold, recycled or discarded, you must make the data unrecoverable. The right method depends on the media type and on whether the device will be reused.
Methods and When to Use Them
| Method | How it works | Device reusable? | Best for |
|---|---|---|---|
| Standard (quick) format | Rebuilds the file system tables | Yes | Not a secure method |
| Overwriting or wiping | Writes patterns of data over every sector | Yes | HDDs that will be reused |
| Drive wipe utility or secure erase | Uses firmware or software to erase the whole drive | Yes | HDDs and, with firmware support, SSDs |
| Degaussing | A strong magnetic field scrambles the magnetic data | No | Magnetic HDDs and tape |
| Shredding or disintegration | Physically cuts the media into small pieces | No | HDDs, SSDs, optical discs, phones |
| Incineration | Burns the media | No | Any media, through a licensed facility |
Degaussing does nothing to SSDs, flash drives or optical discs, because they do not store data magnetically. Use shredding for those.
Software Wiping
On Linux, shred overwrites a file several times. This example makes three random passes, then a final pass of zeros, then removes the file.
shred -v -n 3 -z secret.txt
rm secret.txtOverwriting works well on a traditional HDD. It is not reliable on SSDs, because wear leveling moves data to different cells and some old copies are never overwritten. It also fails on journaling and copy-on-write file systems, which can keep older copies of the data elsewhere. For SSDs, use the drive's secure erase or cryptographic erase feature, or physically destroy the drive.
Choosing a Method
Certificates and Documentation
Organizations that outsource destruction should get a certificate of destruction. It records which devices were destroyed, when and how, and it supports compliance and audits. Many companies also keep a chain of custody record for drives in transit to a recycler. Before disposal, remove or wipe any drive in printers, copiers and phones, since these devices often store documents.
Common Errors
- Treating a quick format as secure. It leaves the data recoverable.
- Degaussing an SSD and assuming the data is gone.
- Overwriting a single file on an SSD and trusting the result.
- Recycling a drive without recording where it went.
Exercise
A company is retiring 20 SSDs that held customer records, and none of them will be reused. Which method is appropriate, and why is degaussing a poor choice?
Show answer
Shred or disintegrate the drives, and get a certificate of destruction. Degaussing works by disrupting magnetic fields, and SSDs store data in flash memory cells, so degaussing would not reliably remove the data.
Exercise
Why is shred unreliable on a modern SSD, and what should you use instead?
Show answer
Wear leveling moves data between cells, so overwrites may not reach every copy of the data. Use the drive's secure erase or cryptographic erase feature, or destroy the drive physically.