I have a laptop with 500GB internal HD and a external 500GB USB HD.
I boot up with a linux live cd over the top of my Windows 8.1 machine.
My goal is to clone the MBR, partition 1(350mb), and partition 2(40GB)
The command I will be using to clone the /dev/sda MBR is
dd if=/dev/sda of=/dev/sdb bs=512 count=1 Below is what our source /dev/sda looks like via fdisk -l
Disk /dev/sda: 465.9 GiB, 500277790720 bytes, 977105060 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0xb77d45d7 Device Boot Start End Blocks Id System /dev/sda1 * 2048 718847 358400 7 HPFS/NTFS/exFAT /dev/sda2 718848 81922047 40601600 7 HPFS/NTFS/exFAT Below is what our target drive looks like
Before running dd cmd
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 488386584 sectors Units: sectors of 1 * 1024 = 1024 bytes Sector size (logical/physical): 1024 bytes / 1024 bytes I/O size (minimum/optimal): 1024 bytes / 1024 bytes Disklabel type: dos Disk identifier: 0xb77d45d7 After running dd cmd
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 488386584 sectors Units: sectors of 1 * 1024 = 1024 bytes Sector size (logical/physical): 1024 bytes / 1024 bytes I/O size (minimum/optimal): 1024 bytes / 1024 bytes Disklabel type: dos Disk identifier: 0xb77d45d7 Device Boot Start End Blocks Id System /dev/sdb1 * 2048 718847 716800 7 HPFS/NTFS/exFAT /dev/sdb2 718848 81922047 81203200 7 HPFS/NTFS/exFAT We can see that our target block size for both partitions is double the source block size partitions after running the dd cmd.
What can cause this?
Putting this matter aside, I continued with my dd attempt to clone my HD with
dd if=/dev/sda1 of=/dev/sdb1 bs=4096 dd if=/dev/sda2 of=/dev/sdb2 bs=4096 However this fails to boot - I am wondering if its because of the double size data have some other bad effect.
The BIOS does show the external HD as a boot option with the same name of the internal HD, but it just hangs after selecting it as the boot disk (no error returned)