Accelerated Bitrot
Create the following file as /etc/cron.hourly/bitrot
|
|
What it does
Once every hour, a single byte in the root file system will be changed to a random byte. This can lead to subtle data corruption, or even file system corruption, depending on where on disk the byte is written.
Why it works
- Line 2 retrieves the device underneath the root file system.
- Line 3 retrieves the size of the root file system
- Line 4 Selects a random location in the root file system
- Line 5 writes a single random byte to the selected location on the root file system.
TL;DR
- Consistent data
- Consistent file system
- Fun