Expand Linux EXT4 Volume
Expanding EXT Filesystem
The following commands is what I use to expand the file system on EC2 instances on AWS. The commands might change for different file systems so make sure you are using the correct commands for the correct filesystem.
List the available volumes using the following command
fdisk -l
Expand the file system using the following command. Replace xvda, 1, and xvda1 with the correct valaues of the partition you want to expand from fdisk -l
growpart /dev/xvda 1 && resize2fs /dev/xvda1
Make sure all is good by firing the following command
df -h