Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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'm running Linux through VirtualBox on Windows 7. When I created the virtual hard drive I only used the default size which is 8 GB. I was able to resize the virtual hard drive to 40 GB but in Linux there's still very little space.

So I got a gparted live CD and booted the virtual machine into gparted to see if I could somehow add or resize the main partition. The extended/swap partition is in the way of the un-allocated space and the main boot partition, which is what I am wanting to add on to. So I can update or download more programs without running out of space.

Right now I am just confused on how to do this.

share|improve this question

You mean, you have a main boot partition, then a swap partition, and then a large (32GB) empty space? In that case...

Swap space can be removed and added again, without throwing away data (the only two exceptions are when the system is running and when the system is hibernated). So,

  1. First remove the swap space.
  2. Then make a new swap space at the end of the disk, with the same size as the previous swap space.
  3. Resize the main OS partition with the now-available space (this resizing will take a long time).
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.