How to verify the integrity after copying the /home to a new drive?


i just copied my home to another drive following this guide Moving /home to second hdd
Because I was scared, I used

cp -rp /home/* /mnt/ && sync

and renamed the original userhome to _bak afterward.

So far everything seems to be working, but is there a quick way to be sure everything was copied correctly?


diff -r /oldhome /newhome
1 Like

You could compare the file and/or directory sizes with du. Or for a more thorough but very time- and energy-consuming examination, you could use diff. :arrow_down:

man du
man diff



of course…stupid me :wink:

1 Like

When using rsync instead of cp, the diff is already included (if you use checksums) :wink:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.