Linux – How to get checksum data integrity on ext4

checksumdata integrityext4linuxstorage

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?

Best Answer

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?