To clone HDD/partition with dd command, the destination HDD/partition must be equal or larger in size than the source.

sudo dd if=/dev/sda5 of=/dev/sdb2 conv=sync,noerror bs=64K status=progress
if=/dev/sda5/path/to/the/source/disk
if=/dev/sda5/path/to/the/destination/disk
conv=sync,noerror // skip errors not abort command
bs = 64K // block size 64K is OK
status=progress // display status