Created
August 4, 2024 23:59
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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