Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Ubuntu 10, with 2 drives: root (8 gb), and data (sdf, 150 gb).

I created a snapshot, and then created a drive from the snapshot, sizing it to 300 gb.

I then shutdown the instance, removed the 150 drive, and attached 300 one.

Sever booted up fine, and all data is there, but sdf is still showing up as 150 gb.

I know how to resize a partition on a machine I have physical access to, but how would I do this safely in EC2?

share|improve this question
If you know how to do it, you know how to do it. If you created the snapshot, and then created the new volume with the new size, the only thing left is extend the partition inside the OS. Do it as you normally would. –  JohnThePro Apr 19 '12 at 21:40

1 Answer 1

up vote 5 down vote accepted

I think this is it: sudo resize2fs /dev/sda1

Full instructions: http://alestic.com/2010/02/ec2-resize-running-ebs-root

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.