I have two HDDs: the first of 150gb (/dev/sdc) with 30gb in use, the second of 100gb (/dev/sdd). There are sdc1 and sdd1 partitions with the same format.
I want to clone the 30gb from the first disk to the second with differences sizes. What is the best way? Clone it with dd or with cat?
Two possibilities:
From the sdc disk:
dd if=/dev/sdc of=/dev/sdd
cat /dev/sdc >/dev/sdd
From the sdc1 partition:
dd if=/dev/sdc1 of=/dev/sdd1
cat /dev/sdc1 >/dev/sdd1
Other questions:
Assuming that /dev/sdd1 already exists with data, could I overwrite it?
Could it cause an error in a sector of the hdd /dev/sdd?