If you have a root disk on an AMI on Amazon’s EC2 server that is too small and you want to increase it, you have to do two things.
You need to 1) create a new volume and 2) you need to resize it.
To create a new volume, you have to stop the server, take a snapshot of the current drive, build a new bigger volume with the snapshot, detach the old volume and attach the new volume. (Note: make sure you get the name of the mount point correct. I was typing /dev/sda instead of /dev/sda1 and it was failing).
Once you do that and start the server, you need to login to the server and increase the disk size. For Ubuntu this will be done with resize2fs command. On Windows, it will be done with the diskpart command.
The following links will provide you with some details on these steps:
Note, for the diskpart command, you should enter a list disk and list partition command and then enter commands like this select disk=1 and select partition=1 (assuming that you want to extend disk 1 and partition 1. I think the root drive is disk 0, in which case you just enter select disk=0)
I am entering all this because I spent far too many hours figuring this out. Why should you have to as well? 🙂