Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a default amazon ec2 instance with 8GB root volume size. I am running out of space. I have:

  1. Detach the current EBS volume in AWS Management Console (Web).
  2. Create snapshot of this volume.
  3. Created a new Volume with 50G space with my snapshot.
  4. Attach the new volume back to the instance to /dev/sda1

However, when I reconnect to the account with:

> df -h

I can see from the management console that my new

Filesystem     1K-blocks      Used   Available  Use%  Mounted on
/dev/xvda1       8256952   8173624        0     100%  /
tmpfs            308508        40    308468     1%    /dev/shm

It's still not using my new volume's size, how to make this work?

share|improve this question

migrated from Jun 27 '11 at 14:57

This question came from our site for professional and enthusiast programmers.

Did you mount the new EBS volume? – Arun Kumar Arjunan Jun 27 '11 at 11:06
I guess it is a question for ServerFault rather then StackOverflow. – Jacek Konieczny Jun 27 '11 at 11:17

You have enlarged the volume, but the filesystem size has remained the same. You should resize the file system. If it is ext3 and the kernel supports on-line resize this should work:

resize2fs /dev/xvda1
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.