0

I'm new with GParted and with linux partition in general.. I followed this answer : How to increase swap space?

But my situation is a bit different and "extend left/right" is driving me crazy.. I can't extend /dev/sda1 with unallocated 7.16 GB.

Someone could explain the right actions in the right order ? Or just tell me that in my case it's not possible..

enter image description here

Thanks a lot !

Delphine
  • 103
  • Of course you cannot extend it since there is no empty space right beside it. Tell us what exactly your aim is. Then we can help with exact instruction – Mostafa Ahangarha Mar 11 '16 at 15:27
  • 1
    There is the swap partition, /dev/sda5, between /dev/sda1 and unallocated space. It needs to be removed before you can extend /dev/sda1. – mikewhatever Mar 11 '16 at 15:30
  • 1
    yes, you should delete /dev/sda5, then resize /dev/sda1 and then recreate /dev/sda5, as the others have pointed out. – spacelander Mar 11 '16 at 15:37

1 Answers1

0

You can only resize partitions that have unallocated space next to what you want to resize.

So ...

  • make the whole of sda2 unallocated by removing swap.
  • make sda1 larger minus the size you want to use for swap + a few mbs overhead
  • recreate swap partition on sda2
Rinzwind
  • 299,756
  • Ok thanks, it works like a charm ! I was hesitant about removing the linux-swap partition !

    My Ubuntu boot as expected and, now, it has 15Go for sda1.

    – Delphine Mar 11 '16 at 16:14