Increase Ubuntu Partition Size

How to increase Ubuntu partition size after expanding the underlying disk

Check disk layout

lsblk

For LVM-based Ubuntu

Your root partition (/) must sit inside an LVM logical volume (e.g. sda3 containing ubuntu-vg/ubuntu-lv)

Grow partition to encompass new unallocated disk space

The following example assumes your active device name is /dev/sda3. Adjust if your configuration is different.

sudo growpart /dev/sda 3

Resize LVM Partition Volume (PV) to recognise expanded partition

The following example assumes your active device name is /dev/sda3. Adjust if your configuration is different.

sudo pvresize /dev/sda3