Clone nvme drive with 4096 sector size to ssd with 512 sector size

cloneddhard drivenvmessd

I have an nvme drive with a logical and physical sector size of 4096.
The block size of this drive as reported by blockdev --getbsz command to be 4096 as well.

The destination drive is an SSD with a logical and physical sector size of 512.
The block size of this drive is 4096.

I tried using dd with the next parameters to clone the drive:

dd if=/dev/sda of=/dev/sdb

but the only partition that i am getting is GPT partition.

I also tried cloning the GPT table with those commands:

sgdisk

and

sfdisk

but no luck there.
i am getting a drive with a partition table that every partition is 8 times smaller than the partition in the original drive.

Do you have any suggestions?

Best Answer

GPT and MBR use sectors numbers to assign partitions. You need create new GPT table on new disk with partitions which have the same sizes in bytes as partitions on old disk. Then you can copy from old disk to new disk each partition:

dd if=/dev/sda1 of=/dev/sdb1 ibs=4096 obs=512 bs=16M
Related Topic