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 had installed Ubuntu inside Windows XP but then I formatted XP and installed Windows 7.

EDIT1: I used Wubi for the same. I want to know which one of the two will solve my problem? creating a virtual disk or resizing root? Also is resizing root possible as the 4GB ext4 partition is already in a NTFS format Hard Drive partition.

At the time of installation I had allocated only 4GB of space to Ubuntu. I want to increase that size as I keep getting a low disk space notification.

I have surfed through a lot of similar questions but this is not a duplicate.

Because I want to know a little about the file systems. In order to solve my problem,do I have to increase the size of root.disk? Or will it be solved by creating a virtual disk?

Also I want to know the difference between creating a virtual disk and just increasing disk space of root.I'm new to Ubuntu so I don't know how the file systems function.

EDIT2:I have created a virtual disk of 10gb ,but I'm still getting the same notification.Is there anyway to install all further applications on the virtual disk I created?

share|improve this question
When you say you installed Ubuntu "inside" Windows XP, what exactly do you mean? If you don't know the technical term for it, can you link to a web page that shows how you did it? –  Robin Green Apr 16 '11 at 7:13
@Robin - Please check EDIT1 –  Pavitar Apr 16 '11 at 7:32
@Robin: Its a Wubi install, that's how you get it inside Windows normally. –  Thomas W. Apr 24 '11 at 19:05

3 Answers 3

up vote 6 down vote accepted

Additional virtual disks are only useful if you're able to split the filesystem (eg putting /home/ on it) so aren't much use if you've installed a ton of stuff. You can split things like /usr/bin but it can get really messy, really fast.

Have you not seen a link to this post on your travels? You'll need a LiveCD or LiveUSB to action it, but it's very simple once you're at that point. Here are the main points:

  • mount your windows partition (where the Wubi install sits)
  • fsck the Wubi filesystem to make sure it's okay. If you don't do this and it has corruption in it before resizing, bad things can happen.
  • resize2fs the Wubi filesystem to increase its size.
  • Have a snack, chill out, high-five yourself... You've just increased the partition size.

Those aren't the full commands, I'll leave those in that thread because it seems to be well maintained.

Failing that, installing Ubuntu only takes a few minutes. If you like it, perhaps you should consider a proper install (disk performance is better too).

share|improve this answer
The thread you linked to has been closed, but now the Wubi resize methods are documented in the Wiki: help.ubuntu.com/community/ResizeWubiDisk and help.ubuntu.com/community/ResizeandDuplicateWubiDisk –  bcbc Feb 16 '13 at 16:53

It's hard to tell here whether you are referring to virtualization or simply the Wubi installer.

Assuming the former, first increase the size of the virtual disk, since that will allow us to expand the actual partition.

Then mount the LiveCD in the Virtual Machine and run gparted. Using that tool, resize the partition to take up the remaining space you created when you expanded the disk. Now reboot and unmount the CD.

share|improve this answer
Apparently he means Wubi (see the update he made), so you will have to update your answer :(. –  RolandiXor Apr 16 '11 at 14:12
@Roland: I don't know anything about Wubi... so I can't :P –  Nathan Osman Apr 16 '11 at 19:14
I have created a virtual disk,but I'm still getting the same notification. –  Pavitar May 19 '11 at 15:24

You actually don't have to boot from a livecd to do this:

sudo dd if=/dev/zero bs=1MiB of=/host/ubuntu/disks/root.disk conv=notrunc oflag=append count=2048
sudo losetup -c /dev/loop0/
sudo resize2fs /dev/loop0

This will add 2 GiB to the filesystem. Adjust the count=2048 for different sizes.

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.