Last active
December 19, 2024 08:12
-
-
Save dogterbox/fce773ae2d298025e0cd19945e1f40d1 to your computer and use it in GitHub Desktop.
resize, expand ec2 disk size
This file contains 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
# clenaup space | |
sudo rm -f /var/log/*.log | |
sudo rm -rf /var/log/journal/* | |
sudo rm -rf /tmp/* | |
# Resize the Partition | |
sudo growpart /dev/nvme0n1 1 | |
# Resize the Filesystem | |
sudo resize2fs /dev/nvme0n1p1 | |
# Verify the Changes | |
# lsblk, df -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment