Sunday, November 21, 2021

How to expand Ubuntu VM root partition

How to expand Ubuntu VM root partition

In this post I have expanded the virtual disk of a Ubuntu VM via VirtualBox Media Manager. The OS inside the VM will not automatically use the additional space. In this post I will show how to expand the root partition to make use of the additional space.

There are multiple ways to expand a partition in Linux, in this post I will document how to do it using GParted.

  1.  Change the VM configuration to boot using Ubuntu installer. 
  2. Boot the VM using the Ubuntu ISO installer
  3. Run GParted - in the warning dialog that says not all space is used, hit on the Fix button
  4. Select the partition to resize and click Resize/Move partition button
  5. Expand the partition to the desired size

  6. The hit on Apply All Operations

  7. Shutdown the VM, remove/detach ISO, then reboot the computer

 

.end.

No comments:

How to configure nfs server on QNX 7.1

How to configure nfs server on QNX 7.1 Target: QNX 7.1 running on a VM (VMware Workstation or VirtualBox). It is assummed that the targets ...