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:

SBCL Hello world

SBCL Hello, world! Version info: - OS: Windows 11 23H2 (Microsoft Windows [Version 10.0.22631.7079]) - Emacs: 30.2 - SBCL : 2.6.4 - SLI...