I have Ubuntu running live from a USB stick on a laptop. I have an external hard drive plugged in which is 2TB.
When I type fdisk -l in the terminal I see the internal hard drive of the laptop as /dev/sda:
Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes
This /dev/sda has two partitions, the boot partition sda1 and another rescue partition sda2. I just want to create a clone of the entire sda drive, including both of those partitions.
Any idea what dd or fdisk command I can use to do this?
Would dd if=/dev/sda of=/dev/sdb/2011-09-13.img work?
When I do md5sum /dev/sda it should match md5sum /2011-09-13.img.
The thing is the 2TB drive has a different number of bytes per sector, I believe it is 4k or something. Will this cause any problems?