- SSH into instance, see where HDD is mounted (
/dev/sda1
?) - Stop instance
- Detach volume
- Create snapshot
- Create new volume from snapshot
- Attach new volume as
/dev/sda1
(or similar) - SSH into the volume:
sudo resize2fs /dev/sda1
Reference: http://stackoverflow.com/questions/9306829/increasing-aws-ec2-ubuntu-instance-disk-space
sudo mkdir -m 000 /vol
echo "/dev/xvdf /vol auto noatime 0 0" | sudo tee -a /etc/fstab
sudo mount /vol
Reference: http://stackoverflow.com/questions/11535617/add-ebs-to-ubuntu-ec2-instance