Merging two partitions together

Asked by Dare on 2011-06-20

How to merge two partitions together on Ubuntu 11.04

Question information

English Edit question
Ubuntu gparted Edit question
No assignee Edit question
Last query:
Last reply:

Delete one Partition (losing all data from it) and then resize the first partition with the free space from the deleted partition.

But this is only working when the partitions are on the same hard-drive.

You can do the steps with gparted.

Dare (dijisesan) said : #2

How to resize my logical partition hard drive

marcus aurelius (adbiz) said : #3

further to what michael basse said, you can only merge two partitions if they are side-by-side. if they're not, that is, there's another partition between them, it's not possible to merge them.

you can use the program called gparted. you can download it from also, you'll need to boot off the cd or usb drive which you burned gparted on to in order to be able to repartition your drive.

once you have gparted up and running, you'll get a list of partitions. delete one of the two that you don't want. make sure you save whatever data is on there before you do this. personally, i'd delete the 2nd one and just expand the first.

gparted is fairly easy to use. you just right click on the partition you want an operation performed on and choose one of the options.

note that it could take a long time to resize the partition.

delance (olivier-delance) said : #4

I could provide advices if you post partition table. Which partition do you want to merge ?
Please provide partition table.
If you can't boot from hard drive, boot en Ubuntu CD/USB stik and then choose "Try without install".
Open a terminal: you can either press Ctrl+Alt+T or Applications->Accessories->Terminal.
To copy/paste in a terminal, replace Ctrl+C by Ctrl+Shift+C and Ctrl+V by Ctrl+Shift+V (for historical reason, Ctrl+C is assigned another function).
Paste to terminal the following commands:
    sudo fdisk -l
where "-l" is lower case "L".
Copy/paste result into a new thread post.

Can you help with this problem?

Provide an answer of your own, or ask Dare for more information if necessary.

To post a message you must log in.