Is it possible to encode data is such a way that it can self-recover from corruptions? (corruptions - for example, hard drive or usb drive with bad sectors)
I'm not looking for solutions involving backups, raid, or file system repair. I'm looking for solutions that employ some kind of self-healing process on raw data.
I'm also aware that I can checksum my data ahead of time and that this will help me know (in most cases) if corruption has occurred. For me this is only half the battle, I need the system to not only know that something has changed but be able to restore from the change itself.
I am aware of ZFS and its capabilities:
ZFS can heal the data if the storage pool has redundancy via ZFS mirroring or RAID. If the storage pool consists of a single disk, it is possible to provide such redundancy by specifying "copies=2" (or "copies=3"), which means that data will be stored twice (thrice) on the disk, effectively halving (or, for "copies=3", reducing to one third) the storage capacity of the disk.
But I am looking for somewhat different solutions/tools, for example something that allows me to protect data on a usb flash drive that is formatted FAT,FAT32, exFAT. Does such a thing exist?