Sample Header Ad - 728x90

How to get error detection and correction on a single hard drive on linux (with btrfs or other methods)

10 votes
3 answers
3779 views
One of the cool things about btrfs on linux is that it can correct bit rot if it has redundant data because of its per-block checksumming. I can get redundant data by setting up a raid1 with two disks. However, can I also get redundant data to prevent bit rot on a single disk? I see that btrfs has a DUP option for metadata (-m dup) that stores two copies of the metadata on each drive. However, the documentation says that dup is not an option for data (i.e. -d dup is not an option). Is there a good way around this? Partition a single disk into two equal parts and raid1 them together? Alternatively, is there another simple way to get file system level error detection and correction on linux (something like an automatic parchive for file systems)? (I'm not interested in answers suggesting that I use two drives.) **EDIT:** I did find this , which is a FUSE filesystem that mounts files with error correction as normal files. That said, it's a little hack/proof of concept the someone put together in 2009 and hasn't really touched since.
Asked by lnmaurer (253 rep)
May 2, 2015, 02:50 PM
Last activity: Apr 19, 2021, 10:07 AM