Skip to content

Instantly share code, notes, and snippets.

@khaliqgant
Created December 29, 2022 09:59
Show Gist options
  • Save khaliqgant/c6f623b2ed8a1dbe56b5880b489b39d4 to your computer and use it in GitHub Desktop.
Save khaliqgant/c6f623b2ed8a1dbe56b5880b489b39d4 to your computer and use it in GitHub Desktop.
[EC2 Resize Instance] Resize Root & Data Volume #ec2 #aws
# mount temp
sudo mount -o size=10M,rw,nodev,nosuid -t tmpfs tmpfs /tmp
# Resize root volume, find correct name by running lsblk
sudo growpart /dev/nvme0n1 1
sudo resize2fs /dev/root
# Resize data volume
sudo resize2fs /dev/nvme1n1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment