, , , , ,

clone a HDD

Get size in bytes:

blockdev --getsize64 /dev/sda

Get size in 512-byte sectors:

blockdev --getsz /dev/sda

clone it with dd:

dd bs=256K if=/dev/sdwhatever of=/dev/sdwhatever


~~DISCUSSION~~