It is necessary to transfer all data from the old HDD ( sdX ) to the new SSD ( sdY ).
GPT is used. Space on the new disk is greater than or equal to the old one. There are several sections: boot, several windows, several Linux. It is necessary to transfer them all in their original form, one of them, if necessary, be enlarged.
Is it possible to first copy the entire disk as is, byte to byte, and then GParted to increase one of the partitions to occupy the unallocated area?
Which command is better to use for copying?
dd if=/dev/sdX of=/dev/sdY cp /dev/sdX /dev/sdY cat /dev/sdX > /dev/sdY
Or some other? I know they usually use dd , but it seems to be slow.
resize2fs /dev/sdXisresize2fs /dev/sdX- Mike