Skip to content

Instantly share code, notes, and snippets.

@pRoy24
Created August 4, 2024 23:59
Show Gist options
  • Save pRoy24/24ea34cc534ca63ea1b0f16b67d4463b to your computer and use it in GitHub Desktop.
Save pRoy24/24ea34cc534ca63ea1b0f16b67d4463b to your computer and use it in GitHub Desktop.
Script to add the extra volume after increasing volume size to root instance on AWS EC2 Ubuntu system
sudo apt-get install cloud-guest-utils
sudo growpart /dev/nvme0n1 1
df -Th
sudo resize2fs /dev/nvme0n1p1
df -h
ls -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment