Skip to content

Instantly share code, notes, and snippets.

@jay-lannister
Last active August 29, 2015 14:08
Show Gist options
  • Save jay-lannister/7349b80c8e98a77b04dd to your computer and use it in GitHub Desktop.
Save jay-lannister/7349b80c8e98a77b04dd to your computer and use it in GitHub Desktop.
Linux partition management on AWS
# references
# [Resizing Root Partition on Linux in Amazon EC2](https://linuxacademy.com/blog/linux/resizing-root-partition-on-linux-in-amazon-ec2/)
# 1. create a snapshot of the old hdd
# 2. create a new volume which has a more storage than the old one from the snapshot
# 3. check the new partition name you want to expand by running
lsblk
# 4. expand the hdd on the fly
resize2fs /dev/xvde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment