Combinining Partitions

Asked by Rups on 2011-05-08

Previously 10.10 was installed.Yesterday i installed 11.04. I choose the first option where it said something like "erase the previous version of ubuntu and install the new one" , can't exactly remember how it was described. So installed but later found that somewhat 40gb that was mounted as /home in prevoius install was left unused.

So is there any way i can combine these unused partitions with the new one. Here's a snapshot of partitions.
Unused partitions are labelled as PREV & PREV2

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gparted Edit question
Assignee:
No assignee Edit question
Solved by:
Evilload
Solved:
2011-05-10
Last query:
2011-05-10
Last reply:
2011-05-09

I think of three ways :

A : save your files in your unused partitions, delete them, push your swap partition to the right, then increase the size of your
ubuntu partition to fit your extended partition.

B : Modify /etc/fstab to make your unused partition mounted in /home. The problem : You must copy all the new config files from your current /home to your unused partition before ! (I did something like this a moment ago). Problems : you still loss 5GB, but you can delete this small partition and increase you 9GB partition to the left.

C : Just make a link of your unused partition to /home/old-partition, for example. I did this for my Documents, Download, etc... that are stored in another partition.

Rups (rupsd) said : #3

Thanks a lot for your suggestion. Can you describe a bit more of option B. . i didnt get +hat problem part

Rups (rupsd) said : #4

Thanks Evilload, that solved my question.

delance (olivier-delance) said : #5

Hello, I will propose my own solution.
0-Make a backup of /home
0bis-If you have a laptop, plug on AC power.
1-Boot on Ubuntu CD and choose "Try" instead of "Install". You can't manage partitions if they are mounted.
2-System->Administration->Partition Editor Gparted (Disk Utilities should work, but I'm used to Gparted).
3-Select partition PREV2 and mark for deletion (you need to click on green button to activate command: arm and fire!).
4-Make a swap partition of 1.1GB at start of freed partition.
5-mark PREV1 to deletion.
6-Move/Resize ext4 partition to use whole free space.
7-Click on green button
8-Reboot