Extend Non-Contiguous Partitions

Extend Non-Contiguous Partitions

I'm trying to exdend my OS partition. As you will see in the screenshot I provided below, the unallocated partition is not contiguous to one of the partition I wish to increase/grow the size i.e /dev/sda6 in my case

What I'd like to do is :

  • /dev/sda6 + 20 GB borrowed from unallocated
  • /dev/sda7 + 1 GB borrowed from unallocated

How can I do that ?

Below is a screenshot from gparted

5

1 Answer

These steps should be performed by first booting from live media as mounted partitions shouldn't be modified.

  1. Insure that the swap partition isn't in use by by the live media by opening a terminal and issuing the command swapoff

  2. Delete the swap partition (/dev/sda7 in your example)

  3. Extend /dev/sda6 to the desired size reserving enough space for a swap partition of the desired size.

  4. Recreate the swap partition (of the desired size)

Gparted usage is beyond the scope of this answer but there is a manual available for those who are unfamiliar with it's usage.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.