Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
119 views
in Technique[技术] by (71.8m points)

truecrypt - Avoid or detect silent data corruption - Good practices? BtrFS?

1) The goal

I want to preserve the integrity of the data on my storage media, I am currently installing from scratch my personal computers and my new home server (for self-hosted services) so I think this is the right time to ask the right questions to go with the right systems and practices currently in use in 2021.

2) My habits

This reflection is based on an observation:

  • I scan all my paper documents to keep them for a lifetime
  • I keep all the documents I already receive in digital format for a lifetime
  • I keep all souvenir digital photos / videos for a lifetime

I have backup drives (I store at least one in a different location).

As I was initially a Windows user, I had used the FAT32 and NTFS file system, but for 5 years now I have completely switched to linux first with the ext3 or ext4 file system and very recently, I switched to btrfs (for time-shifting and COW functionality). I initially stored the data without encrypting it but soon used truecrypt (7.1a) file containers.

I have been doing this for over 10 years. But unfortunately, sometimes when I have to take an old document or a photo, I find that it got corrupted silently. For example, the start of the image is good, the rest appears in gray.

Many origins can be the cause, hardware failure, power failure or cut, software failure, cosmic particles ... Fortunately I have never had an encryption container failure.

My goal is not to avoid these corruption 100%, but to detect them early enough to retrieve an uncorrupted version before erasing / replacing the backup.

3) Questions

  • I have read that the btrfs file system is capable of detecting data corruption. How does it works:
    • I don't want to manage a raid or another system with multiple drives, is this still possible?
    • Do we need software to detect corruption or is it fully integrated with the file system itself?
    • Will corruption be detected on the fly or do we need to make manual action?
    • How to be sure that the backup with good data will not be erased by a corrupted version of the same data?
    • Is it possible to automate recovery from the last backup when corruption is detected?
    • I am aware that corruption can occur before being stored on disk (using non-ECC ram for example). But in case of copying from one drive to another is it possible to ensure the integrity of the data of the destination without manually running a comparison tool?
    • How to avoid silent corruption on external backup drives?
    • I use SSD disks like internal mechanical disks or external USB disks, do they have to be configured differently?
  • I want to store my data encrypted:

Thanks for reading, sorry for my bad English skill.

question from:https://stackoverflow.com/questions/65864694/avoid-or-detect-silent-data-corruption-good-practices-btrfs

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I have some partial answers for you, but I don't think this is the proper place to ask this kind of questions, so that's why I think you got no feedback so far. For instance I've been recently directed at https://unix.stackexchange.com for a BTRFS related question.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...