Hello daniweb,
i am currently working on setting up linux, and i need some help making a partition.
When making a particion, this happened:
http://i.imgur.com/xbJ17.png
i need to combine the 2 ubuntu partitions to acually install it on that partition. i was wondering how to do this.
Thanks, Quinnifir
:D

Dani AI

Generated

Building on and , here are practical, low-risk ways to get a single usable Linux root from the two existing Linux partitions. Two solid options: (A) combine the two Linux partitions into one logical volume using LVM so the OS sees them as a single block device, or (B) use a Linux live partition tool to resize/move partitions and create one contiguous ext4 area. Both methods change the disk layout — create a full disk image and a Windows recovery drive before doing anything.

LVM workflow (keeps other partitions untouched and does not require them to be contiguous): boot an Ubuntu live USB, prepare the two Linux partitions as LVM physical volumes, then create a volume group and logical volume and format it. Example commands (run from the live session terminal after identifying the right /dev/sdXN names):

sudo pvcreate /dev/sda5 /dev/sda6
sudo vgcreate vgubuntu /dev/sda5 /dev/sda6
sudo lvcreate -n root -l 100%FREE vgubuntu
sudo mkfs.ext4 /dev/vgubuntu/root
sudo mount /dev/vgubuntu/root /mnt

After that you can install Ubuntu using "Something else" and point the installer at the created LV, or let the installer create LVs for you. See the Ubuntu LVM guide for details: .

If LVM is unfamiliar, use a live partition editor and a disk image as insurance. Boot GParted Live to move/resize, image the disk with Clonezilla first, and create Windows recovery media via the Microsoft support page: . After moving NTFS partitions, run Windows chkdsk /f. If GRUB needs reinstalling:

sudo grub-install /dev/sda
sudo update-grub

Note: modern Ubuntu can use a swap file instead of a swap partition; check swap and hibernation needs before sizing swap. See the Ubuntu swap FAQ: SwapFaq.

Recommended Answers

All 2 Replies

The other one (the last partition) was probably for swapping purpose. It doesn't need to be combine with each other.

Since Recovery partition was in the middle of both linux partition, very likely you can't combine both until you delete the recovery partition. There was one program that could move partition by moving whole partition involved and transfer any unallocated space to another big unallocated space but I forgot where I found it.

I have used partition commander for quite a long time and it is very easy, flexible and can move, link or format partitions in almost any way. This is not an advert, I have no axe to grind but it also allows you to view all the proposed changes before you do them.

It made a lot of sense to me when I could see what I was going to do and prevented troubles.
best of luck
M

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.