A
A
Alex M.2016-01-05 17:15:48
linux
Alex M., 2016-01-05 17:15:48

How to check data integrity?

Hello! Faced the problem of checking the integrity of the data.
Given: a ~1tb file was copied, a snapshot of the hard disk, I tried to remove the md5 hash sum, but the result of the utility 's operation md5sum -b hdd.imgon the same machine is always different.
how to check file integrity.
The SystemRescueCd-x86-4.6.1 distribution is based on Gentoo

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Martyanov, 2016-01-05
@vilgeforce

You need to use the normal hash implementation and use it correctly. MD5 does not contain any elements of randomness and the hash for the same data must be the same.

M
Melkij, 2016-01-05
@melkij

If you don’t touch this file while md5sum is running (and you never know if the file systems from it are mounted somewhere), but the hash differs from run to run, then you have a problem with your system. For example, the drive cannot correctly read a certain area and returns garbage instead. Or a memory problem.

V
Vlad Zhivotnev, 2016-01-05
@inkvizitor68sl

As practice shows - md5sum is not mistaken. Look for a problem with a file or with a piece of iron.
We have one pebble md5sum incorrectly counted, and then 10/2 it became 3 in production;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question