2

This is my GParted view

This is my GParted view. There is a 100GB of unallocated space at the very top. I want to add that space to /dev/nvme0n1p1 or the / which is shown locked. I already searched online but most of the solutions had linux-swap partition involved somehow. I seem to have a swap file instead. Also it seems the order of these partitions as shown in GParted matters. Now, I want to safely add that extra space, i.e. without any data loss.

GX_V
  • 23

1 Answers1

2

The solution to this is quite straightforward. You will need:

  1. A backup of any data you cannot afford to loose.
  2. The means to boot into a live environment. The Ubuntu install media is perfect.

The steps are as follows

  1. Boot into Windows and use the disk management tool to move the approximately 76GB VOLUME to the start of the disk. This will move the unallocated space next to your approximately 49GB Ubuntu root partition
  2. Boot into the live environment (Try Ubuntu not install Ubuntu if you are using the Ubuntu install media)
  3. Using GParted resize the approximately 49GB partition making use of the 100GB of unallocated space.

That’s it reboot into your enlarged Ubuntu install.

Good luck!

PonJar
  • 1,973