changing partition size.
hi,
i have several partitions on a hard drive, let's call it sdb. I want to copy them all to a larger drive, let's call it sdc. I want to expand sdb1/sdc1 to fill up the remaining space while keeping sdb2-8 exactly the same. sdb1 is the boot partition with Linux installed on an ext2 filesystem.
I've managed to recreate the partitions on sdc as per my requirements, and I've dd'ed sdb2-8 to sdc2-8. I've also dd'ed the MBR from sdb to sdc, then modified the MBR partition table values to keep it consistent with the actual partitions, and fdisk recognizes the updated sdc paritions correctly. However, when I dd sdb1 to sdc1, this also seems to change the partition size of sdc1 to that of sdc1 when I mount sdc1 and check it with df.
How do I change the partition size of sdc1 while having the contents of sdb1?
|