Can using cp command corrupt files transferred across different filesystems? Should I be using something like rsync instead? [closed]

StackOverflow https://stackoverflow.com/questions/15312032

Question

I am trying to copy files from one hard drive to another in my home server using the cp command. I am copying from an NTFS-formatted partition to an ext4 partition on a new hard drive I have installed.

Is it possible for the cp command to corrupt the transferred files?

Should I be using something like rsycn to verify file integrity is checked upon completion instead?

Was it helpful?

Solution

I would use rsync.

rsync can give you additional checksums, but the real power is the ability to resume after interruptions. This really helps for large files like VMs.

This really is more a serverfault question - See copying-a-large-directory-tree-locally-cp-or-rsync.

OTHER TIPS

rsync should be better than cp when copying files.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top