Resize an EC2 Linux File System on AWS

If you need to resize an EC2 instance, or an additional mounted volume in AWS.

To unmount the drive, you may need to comment out the entry for it in /etc/fstab otherwise it’ll be in use when it starts up. Do this, then restart, check it’s not mounted and run sudo e2fsck -f /dev/xvdh then if all clean sudo resize2fs /dev/xvdh you can then check it’s extended with df -h

About

I'm a technology professional who's been passionate about computers since my Grandad introduced me to an Intel 386 back in the 90s when I was a kid. Those moments inspired a passion within for technology, and I've been playing around with anything with a circuit board ever since. Whenever I have a moment you can probably find me working on something computer-related, and this is where I like to write about those moments.