2

I dual-booted Windows with Ubuntu (Ubuntu became the second partition). Now I want to transition to a single-boot system with Ubuntu. I have removed the Windows partition and turned it into unallocated data, but the Ubuntu cannot "retrieve/get" the unallocated data because its before the OS installation.

Here is an image of the Gpartion: https://i.imgur.com/wdl7DOF.png

enter image description here

How can I get the unallocated space into the Ubuntu partition?

Alucado
  • 21

2 Answers2

3

Ensure all data is backed up.

Boot the computer to a live USB.

(You have to do this because the procedure will only work if the nvme0n1p5 partition is not mounted. In the image you provided in the question, it is mounted as shown by the little icon next to the partition name on the left.)

Once in the live session, in gparted:

Click the nvme0n1p5 partition, right-click and select Resize/Move. A box will pop up showing the partition. Drag its left boundary all the way to the left, then click Resize at the bottom.

0

Make the unallocated space "allocated". In G-parted Just click on it.Go to the menu (partition in the menu-bar), and unmount (if necessary) the unallocated . Then format the unallocated to ext3 or 4. Mount if afterwards. (with the menu of gparted). Just let the new partition as it is, its always safer to have two partitions on a disk, and you can you use the space in ubuntu (your data for ex.)

Julien Chau
  • 1,350