JUDICIAL KNOWLEDGE HUB · by Cecep Mustafa (IJC)

Data erasure

By Cecep Mustafa, Indonesian Judicial College (IJC) · revision 29, 2026-06-06 · wiki source · Markdown

Data erasure (sometimes referred to as data sanitization, data clearing, or software overwriting) is a software-based method of securely overwriting data that aims to completely destroy all electronic data residing on a hard disk drive (HDD), solid-state drive (SSD), or other digital media.

Unlike simple file deletion or drive formatting—which only remove pointers to the data, leaving the actual files recoverable by digital forensics tools—true data erasure ensures that the target data is completely unrecoverable, rendering the storage medium safe for reuse, resale, or recycling.

Mechanism

The fundamental mechanism of data erasure involves writing a stream of non-destructive data across every addressable sector of a storage device. Typically, this stream consists of binary zeroes (`0x00`), binary ones (`0xFF`), or completely random pseudo-noise patterns.

By overwriting the physical sectors, the residual magnetic or electrical charges that represented the original data are replaced. This process directly counters file carving and advanced laboratory hardware recovery techniques, such as magnetic force microscopy.

Standards and protocols

Various government, military, and independent organizations have established standards for data erasure, defining the number of overwriting passes and the specific patterns required to certify a drive as sanitized.

Standard Origin Number of passes Overwrite pattern sequence
DoD 5220.22-M U.S. Department of Defense 3 passes Pass 1: Fixed character (e.g., zeros); Pass 2: Complement (ones); Pass 3: Random character, followed by verification.
NIST SP 800-88 Rev. 1 National Institute of Standards and Technology 1 or more Emphasizes "Clear" (logical overwrite) and "Purge" (low-level commands) based on media type. Currently the industry standard.
Gutmann method Peter Gutmann (1996) 35 passes Designed for older MFM/RLL magnetic drives; includes 4 random passes, 27 specific patterns, and 4 final random passes. Highly redundant for modern hardware.
British HMG IS5 United Kingdom 1 or 3 passes Baseline uses 1 pass of zeroes; Enhanced uses 3 passes (zeroes, ones, random) with verification.

Challenges with modern hardware

While traditional data erasure standards were optimized for magnetic hard disk drives, modern storage technology has introduced significant hurdles to software-based overwriting.

Solid-state drives (SSDs)

SSDs utilize flash memory managed by an onboard flash translation layer (FTL) controller. Due to architectures designed for efficiency and longevity—such as wear leveling and over-provisioning—software utilities cannot directly target physical blocks on the drive. Standard file-shredding or linear overwriting programs often leave data remnants untouched in hidden or reallocated blocks.

To securely erase an SSD, operators must trigger hardware-level commands built into the drive's firmware by the manufacturer:

Data erasure vs. physical destruction

Data erasure is often contrasted with physical destruction methods, such as degaussing, physical shredding, or disintegration.

The primary advantage of software-based data erasure is sustainability and economic value; the hardware remains fully functional and can be safely redeployed or sold on the secondary market. Physical destruction, by contrast, creates electronic waste (e-waste) and completely destroys the capital value of the hardware, though it remains favored for ultra-high-security military applications.

See also

References

Category:Computer security Category:Data management Category:Data privacy

Cite this page
Mustafa, C. (2026). Data erasure. In Judicial Knowledge Hub. Indonesian Judicial College (IJC). https://bsdkijc-dev.github.io/judicial-knowledge-hub/p/Data_erasure.html
Author: Cecep Mustafa, IJC, ORCID 0000-0003-0037-497X · Licence: CC BY-SA 4.0