I have dual boot system with ubuntu 17 and windows 10. Initially I had allocated 30Gb space for ubuntu(sda4), but now I want to increase this space. I tried this through Gparted in live usb ubuntu, but it is not allowing me to extend sda4 partition. I have 20Gb of free space just after sda4 partition. How to do this?
Right-click the swap partition (/dev/sda5), then click “Swapoff”. Then it should work.
More details: When you start a live system, it automatically uses the swap partition. While the swap partition is in use, it and its containing extended partition cannot be modified. So when you tell the live system to stop using the swap, it and the extended partition should become modifiable.