Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a VM running Ubuntu, and I wish to increase its size from 20 to 40 GB.

I powered off the VM and on the VMware side increased the allocated disk space. I did this by Edit Virtual Machine Settings -> Hard Disk -> Utilities and so forth. It then warned me that I should increase the partition size within the guest VM.

Looking at the disk usage analyzer inside of Ubuntu, it only currently sees the original 20 GB. How do I increase this to the 40 I allocated?

share|improve this question

1 Answer 1

As it says, you need to increase the partition. Resizing the virtual disk, just changes how big partitions can be. You can't resize an active filesystem so the easiest way to do this is:

  1. Boot the VM to a LiveCD ISO of Ubuntu (what you installed from should do but a later/earlier ISO will work too)
  2. When asked click Try Ubuntu
  3. Load gparted aka Gnome Partition Editor. I think it's installed on every CD but you might have to grab it from the Software Centre.
  4. Find your disk, right click it and go through the resize wizard.
  5. Restart the VM without the LiveCD and you should have more free space.
share|improve this answer
    
Thanks for your response. How do I boot the VM from the live cd? I have downloaded the ISO and mounted it to VMware's cd rom, but I'm not sure how to make the ubuntu VM boot from that –  coffee Aug 9 '11 at 15:24
    
Mash F2 when it starts to boot (when the VMWare logo is on the screen). It'll either give you a BIOS screen where you can change the boot order, or a plain boot menu that'll let you select the CD. –  Oli Aug 9 '11 at 16:26
    
Is there a faster way to access the LiveCD desktop? It's so slow and I can't get anything to refresh or run since it's trying to display the desktop via the VMWare ESX Console. Any way to speed this up? –  Valien Jul 9 '13 at 20:09
    
You might find yourself stuck at step no 4 and unable to resize the root partition since the swap partition is "in the way". What helped for me was to delete the swap partition, increase the size of the root and then create a new swap. Note: I am a newb when it comes to linux so backup before u try this and maybe someone can comment if my approach is correct. –  s.Daniel Oct 26 '13 at 15:04

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.