0

I have accidentally (well actually carelessly) provided 11gb swap memory for my dual boot Ubuntu 20.04 installation with Windows 10. I have allocated 25gb to the root partition, which I would like to expand. Can I convert my swap memory to root storage in Ubuntu? If so, how? If not, any alternatives?

I'm a complete Linux noob, so sorry if this is a dumb question!

Edit: It is a swap partition that I'm talking about

Edit 2: The following is what I see in Gparted. /ext4 is my root partition, and the one below unallocated is the linux-swap. Can I do the resizing then?

enter image description here

MarianD
  • 1,026

1 Answers1

0

Use disk management tool gparted. If not installed you can install it using $ sudo apt update && sudo apt install gparted. Launch the app as a super user $ sudo gparted and enter the password when prompted. You will see the logical representation of your storage device.

It is possible to make these changes if and only if your swap partition is adjacent to the right of the root partition otherwise you are limited! If this is true, proceed to swapoff and resize your partition from left to right creating an unallocated space adjacent to the right of the root partition. After that move the root partition to the right adding the an unallocated space. A green icon should appear to the top asking to apply all changes. Click and proceed as prompted and you are good to go.

For detailed information on how to use gparted find it here.

Hope this serves your purpose. Success!

Justech
  • 184