overwriting

Replacing stored data by writing new data, such as zeros or random bytes, over the same storage locations.

In more detail

Overwriting every location the operating system can address is the usual way to clear a hard disk drive, and the same idea makes a database wipe deleted records instead of leaving them in free space. It is unreliable on SSDs and other flash storage, because the drive writes the new data to fresh cells and leaves the old ones intact. Backups face the opposite risk, since ransomware may overwrite them, which is why backups are made read-only or immutable.

Examples

PRAGMA secure_delete=ON   -- SQLite overwrites deleted content with zeros
overwrite refused: Permission denied   # a read-only backup file

Related terms

Taught in

References

Certification courses