Use this when data may have decayed silently on media.
Bit Rot
Bit rot is gradual, silent corruption of stored data caused by media decay, magnetic or charge loss, or firmware faults. Only checksums and periodic scrubbing detect it before the bad data is read or backed up.
1. Bit rot = gradual media decay.
2. Scrubs read and repair before multiple copies decay.
3. Archives need periodic verification.
4. Migrate old media.
5. Checksums required to detect.
stored data decays → scrub detects → repair
Context & applicabilityCommon mistakes · platform/version boundaries
- Archives never read, so decayed data goes unnoticed until restore.
- Copying archives to new media without verifying checksums.
- Relying on RAID consistency checks, which only show mismatch, not which copy is right.
- No stored hashes for long-term archives (keep SHA-256 manifests).
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Bit rot gives no error when read.
- Checksums plus scrubs detect it.
- Backups can copy corrupted data.
zpool scrub <pool>— scrubbtrfs scrub start <mount>— scrubsmartctl -a— media errors
ReferenceHow it works1 section · depth on demand
Detecting bit rot
Regular scrubs read every block and compare it to checksums or parity:
zpool scrub tank ; zpool status -v tank # CKSUM column, files with errors
btrfs scrub start /data ; btrfs scrub status /data
ceph pg deep-scrub <pgid>
Repairs need redundancy (mirror, RAIDZ, replicas); single-disk pools can detect but not fix corruption. Keep older backups, since corruption may predate the latest ones.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Bit rot is gradual degradation of stored data: weakening magnetic domains, charge leakage in flash cells (worse at high temperature and on worn flash), and media defects that develop over time. It mostly affects data that is rarely read — archives, old backups, cold tiers.
Countermeasures: periodic scrubs or full reads, checksumming filesystems or object stores with background verification, multiple copies, and media refresh (migrate tapes and offline disks every few years). Long-unpowered SSDs are a poor archive medium.
Tools
| Tool | Use |
|---|---|
| ZFS / Btrfs scrub | Detect and repair with redundancy |
sha256sum manifests | Verify archives |
par2 | Add recovery data to archives |
| Object storage checksums | ETag/MD5 or CRC32C on upload |
| Tape verify | Backup software read-back after write |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Data Integrity → Bit Rot. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/209/final · confidence 94%