{{tag>dd clone copy hdd sdd howto}}
====== clone a HDD ======
* http://blog.tdg5.com/tuning-dd-block-size/
* https://unix.stackexchange.com/questions/52215/determine-the-size-of-a-block-device
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~~