Great question — answering as the UphillTech team:
I'm not sure if you started with a smaller EC2, but your root partition only has 6GiB of space allocated to it. That doesn't help much since the Android SDK and other files are going to consume that tiny partition fast . Thanks to fdisk we know your system has space. The partitions are out of disk order in the output but that's fine. First, install cloud-guest-utils if it isn't already installed. One of the tools is growpart . Once installed, run sudo growpart /dev/nvme0n1 1 and let it run. After, use sudo resize2fs /dev/nvme0n1p1 . It should live-resize your system's partition to use all the newly unused space. But because this is in EC2, you should reboot the instance. You should then be...
Full answer by Thomas Ward: https://askubuntu.stackexchange.com/a/1569057 (CC BY-SA 4.0).
Need it done for your business? UphillTech.