Results 1 to 7 of 7
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 ...
- 06-17-2009 #1Linux Newbie
- Join Date
- Apr 2008
- Posts
- 110
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?
- 06-17-2009 #2Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 448
did you try gparted?
the sun is new every day (heraclitus)
- 06-17-2009 #3Linux Newbie
- Join Date
- Apr 2008
- Posts
- 110
Yup but gparted doesn't allow me to specify the exact size with the GUI.
- 06-17-2009 #4Linux Newbie
- Join Date
- May 2009
- Posts
- 128
- 06-18-2009 #5Linux Newbie
- Join Date
- Apr 2008
- Posts
- 110
You're able to specify the exact size in number of blocks/sectors? All I get is a slider.
- 06-18-2009 #6Linux Newbie
- Join Date
- May 2009
- Posts
- 128
I do have a slider and there I can change partitions for example:
I do have 1GB + 2GB and at the end 3GB free.
Then I add the 3GB to the partition with 2GB.
In there I can move data to the end of the partition and snipp away from the beginning => 1GB + 3GB free + 2 GB
Now I can unite the free with the first partition.
That's the way I do.
- 06-18-2009 #7Linux Newbie
- Join Date
- Apr 2008
- Posts
- 110
Thanks. I need to have the precision down to LBA though. I ended up recreating the partitions with fdisk and then copying the old partition data over with dd and Acronis.


Reply With Quote

