How to resize Ubuntu 20.04 disk

I forgot how to resize a disk on a regular computer. I have been working with EC2 instances for so long that I completely forgot! I had a 2TB hard drive that was only showing as 200gb. Thanks to vander.host I am up and running again. These were the easiest instructions to follow.

The differences are not big but they are enough differences that it takes a few more steps than EC2. I should clarify and say the old EC2 because the new way is even less steps.

With this you will be using parted, lvextend and resize2fs. Use lbsk to see how much space you have to use and ofcourse do not forget about df -h.

I’ve built a nextcloud server for a client but I have a few more tweaks to make to it.