0

I have a home file server that I use Ubuntu on.

Recently, one of my drives filled up so I got another and threw it in there.

I have a very large folder, the directory is about 1.7 T in size and contains a decent amount of files.

I used GCP to COPY the files from the old drive to the new one and it seems to have worked fine.

I want to now validate the new directory on the new drive against the original directory on the old drive before I delete the data from the old drive to free up space. I understand that I can do a CRC check to do this.

How, specifically, can I do this?

0

1 Answer 1

2

You can use md5sum:

cd /path/to/old/data
find . -type f -exec md5sum {} \; > MD5SUMS
mv MD5SUMS /path/to/new/data
cd /path/to/new/data
md5sum -c < MD5SUMS

This would take a long time, considering you have 1.7TB of data, just like every other verification method.

2
  • Maybe you can add alternatives with CRC and alike, if users don't need cryptography, it would complete much faster.
    – user311189
    Sep 29, 2016 at 12:52
  • on a 22GB test, using md5sum is faster. So no crc32 version.
    – solsTiCe
    Sep 29, 2016 at 14:42

Not the answer you're looking for? Browse other questions tagged .