I currently have a VM which has 50 GB of space. I increased it to 100 GB and booted the Ubuntu Live CD.

I did the following

  1. Deleted the partition /dev/vda1
  2. Readded it with all blocks
  3. resize2fs /dev/vda1 and it did it's job
  4. rebooted

Now, df -h shows me it's still 50 GB. Is there anything I missed? The /dev/vda disk is 107 GB.

enter image description here


Is there another partition that is adjecent to partition #1. I ask because you can only expand (in place) if the area is contiguous to what was there before. You might want to show the fdisk for the disk /dev/vda.

  • Screenshot has been added to the initial post. – Devator Nov 26 '12 at 21:24
  • Yes, without first deleting the swap partition, the extended partition definition, deleting the initial paritition and then doing the stuff in reverse...you're not going to get any larger than what you got now! – mdpc Nov 26 '12 at 21:46
  • Alright, is it safe the delete these partitions, resizing the filesystem and then recreate them? – Devator Nov 26 '12 at 21:48
  • @Devator assuming it's not a live system or you've at least disabled swap it would be ok, but I think mdpc missed that you've supposedly already grown the partition, but resize2fs doesn't report the same number of blocks as fdisk – DerfK Nov 26 '12 at 21:59
  • @DerfK and mdpc I just tested it on a machine, and works perfectly (using gParted with Ubuntu live cd)! Cheers! – Devator Nov 26 '12 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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