Skip to content

Instantly share code, notes, and snippets.

@kjlape
Created July 7, 2016 21:31
Show Gist options
  • Select an option

  • Save kjlape/823cc6498a33ffba4e4707ed1caa786e to your computer and use it in GitHub Desktop.

Select an option

Save kjlape/823cc6498a33ffba4e4707ed1caa786e to your computer and use it in GitHub Desktop.
Expand the size of an EBS volume attached to a linux EC2 instance.
# Setup
# 1) create a new volume based on a snapshot of your old volume
# 2) attach the new volume to your ec2 instance
# look at attached volumes
fdisk -l
# resize the volume
resize2fs /dev/xvdf
mount /dev/xvdf /mnt/moar_filez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment