Copy hard disks or partitions with dd
Warning: The following is for personal note only, and is not meant to be a tutorial or guide. On Debian server at work, we have /home mounted to /dev/hda6 partition, and I want to move that to a new hard disk /dev/hdb. First, I need to create the new partition on /dev/hdb using fdisk with a desired size. Then, use dd to copy the content from /dev/hda6 to /dev/hdb1. # dd if=/dev/hda6 of=/dev/hdb1 bs=1024 The above command instructs dd to read the content from /dev/hda6 and writes it to /dev/hdb1....