How to Use DD to Copy an Entire Hard Drive
- 1). Open your Terminal. This process differs depending on your operating system; consult your documentation if you're unsure.
- 2). Type in the following code, as an example:
dd if=/dev/sda of=/dev/sdb
In Unix systems hard drives are stored in the "/dev/" path; "sda" is the first hard drive in a chain, "sdb" is the second, and so forth. - 3). Replace "sda" with the hard drive you want to duplicate. Replace "sdb" with the destination drive.
- 4). Press "Enter."
Source...