So I got a new bigger hard drive for my laptop and a USB enclosure for the new drive. I need to clone over all of my partitions including my extended partition with several logical partitions inside it. I wanted to post my plan and see if I'm about to do something stupid or if what I am going to do will even work.
First, I think I won't need to partition or format the new drive since I will just be copying the MBR over using:
dd if=/dev/sda of=/dev/sdb bs=512 count=1
This should establish an identical partition table on my new drive. From there I just do
dd if=/dev/sda1 of=/dev/sdb1 bs=4096 conv=notrunc,noerror
etc. for all of the primary partitions. My current thinking is that this will get all of the formatting on each of the partitions and will also take care of copying the extended boot records since they should just be in the extended partition, sda4.
From there I plan to use qtparted to expand the extended partition to encompass the new free space at the back of the drive and make some new logical partitions to put more stuff on.
1. Will this work, or should I change anything?
2. Is there a better/faster block size I should be using to copy the data with? Both drives are in good condition (probably) so I was thinking I could use a larger block size.
I read the howto here:
but it didn't cover extended partitions and whether the partition table will allow me to avoid doing anything else.
Thanks in advance for your comments.