Copy hard disks or partitions using 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 reside on /dev/hda6 and I want to move to a new hard disk /dev/hdb. First, I need to format /dev/hdb using fdisk. Then use dd to copy the content from /dev/hda6 to /dev/hdb1, the newly createdd ext3 partition. # dd if=/dev/hda6 of=/dev/hdb1 bs=1024 The above commands instruct dd to read the content from /dev/hda6 and write it to /dev/hdb1....