Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

On file systems like btrfs you can preform a scrub, which will go though all the data to see if the data still matches the file system checksum.

I would like to check the data on ext4 if it is correct before a backup.

Question

ext4 doesn't have file system checksum, but can something similar be made?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Ext4 doesn't have an equivalent to a ZFS or btrfs "scrub", however, a recent feature is metadata checksumming. Using it would require a very new kernel and an updated e2fsprogs.

What distribution are you using?

share|improve this answer
    
I had no idea that ext4 were being extended. Sadly I see that I would need to reformat the partition to get this feature. So maybe I should just make a script that will do a sha1sum of each file and store it in a yaml file... Using CentOS 6. –  Sandra Dec 8 '12 at 23:40
    
@sandra But you also use ZFS (from your other questions)... Over the past few weeks, I've been using ZFS on Linux with my CentOS 6 systems using this guide. It's been solid in testing and I'm planning to move it into production. It may be an elegant solution for your use case. –  ewwhite Dec 8 '12 at 23:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.