-2

My root partition is 90% full because, when I installed Ubuntu, I thought that my /home partition needed more space. So right now I have a 20 GB root partition, 150 GB for my /home partition, and 40 GB of unallocated space that I would like to give to my root partition! Note that I am dual booting Ubuntu with Windows 11.

I tried using GParted, and the disk manager from Ubuntu, but it was unsuccessful. Using lsblk does not show where my partition starts, so I cannot use fdisk to delete my partition and extend it to where it starts.

screenshot of GParted

Fed_
  • 3

1 Answers1

4

IMPORTANT... Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or lose data.

Note: Manual multi-partitioning during install (example: a separate / and /home), especially on smallish disks, usually causes partition sizing problems later.

Keep these things in mind:

  • always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition

  • a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor

  • a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor

  • if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)

  • you begin any move/resize by right-clicking on the partition in the lower pane of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window

Do the following...

Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.

  • boot to a Ubuntu Live DVD/USB, in “Try Ubuntu” mode
  • start gparted
  • move the entire /dev/nvme0n1p5 partition all the way left
  • resize the right side of /dev/nvme0n1p5 all the way right
  • click the Apply icon
heynnema
  • 73,649