Maintained by Thijmen Heuvelink

After expanding the space on your disk ubuntu won't automatically use the entire volume, in Windows you'd open Disk Manager and do it in there. This is a bit harder to do on the terminal though.

This has been tested on

  • Ubuntu 20.04

Get started

Expanding your logical volume on your system via the following commands:

apt install -y parted
parted

2a.

print

2b.

resizepart

2c.

quit
pvresize /dev/sda3
lvextend /dev/ubuntu-vg/ubuntu-lv -l+100%FREE
resize2fs /dev/ubuntu-vg/ubuntu-lv

This knowledge base serves as a valuable tool to simplify installations, troubleshoot common problems and to enhance the overall developer / admin experience. mail@thijmenheuvelink.nl - all rights reserved