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

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

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
    
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

 
discard

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.