Add unallocated space to Ubuntu 16.04 [duplicate]

I have this situation on my hd:

enter image description here

I would increase the space of sda10 with the double unallocated space. There is a way to do that?


Use the following steps to solve your problem:

  1. Boot from a live CD/USB, and choose try without installing.
  2. Open the dash once you are in the desktop, and type gparted and open the app. It will take a while to find all the partitions so be patient.
  3. Right-click and choose move and drag and drop the Linux swap onto the small partition all the way at the right.
  4. Right-click on the Ubuntu partition and choose resize and drag one side all the way to take up all of the unalocated space.

You're done!


Looking at your image from a Live CD you can do expand the space to the unallocated partitions with this consideration.

First you can't have anything between the partition you want to expand to. So you would have to delete the /dev/sd9 (Linux swap partition). Then expand /dev/sd10 to include the space unallocated space on that side. Do the same for the unallocated space on the other side.

As far the swap partition, I would suggest that you put it to the furthest on the end. This way you won't face having it separate your other partitions that you might have occasion to want to grow or shrank.