How to resize a disk on Ubuntu server 20.04

I had an issue with my Thinkpad x220; when I installed Ubuntu, I had only 100GB available out of 1000 GB. So it ran out of available space quickly.

To resize to all the space available, I ran these commands:

lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv

resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

Sources:

Leave a Reply

Your email address will not be published. Required fields are marked *