Skip to content

Instantly share code, notes, and snippets.

@nanusdad
Last active November 16, 2020 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanusdad/8a7b34c36d599eb751ae5cf2272521a2 to your computer and use it in GitHub Desktop.
Save nanusdad/8a7b34c36d599eb751ae5cf2272521a2 to your computer and use it in GitHub Desktop.
Expanding Root Volume on EC2 (Ubuntu)

Expanding Root Volume on EC2 (Ubuntu)

df -hT
lsblk
sudo growpart /dev/nvme0n1 1
  • For ext4
sudo resize2fs /dev/nvme0n1p1

Link to AWS Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment