Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How do I give Ubuntu 10.10 more space (when installed inside Windows 7 (via wubi))?

I'm running out of space in wubi. Online wubi help didn't help much since they suggest creating extra virtual disk space(similar to having a diffrent partition i guess) . None of them speak about increasing the size of /root disk space(or root.disk). I store all files in space shared with windows or external disk and use ubuntu only to install and use softwares and browsing. So how do increase the available space for installing more softwares?

share|improve this question
1  
The wubi guide has a section on this (wiki.ubuntu.com/WubiGuide) - or refer to askubuntu.com/questions/35401/… – bcbc Aug 4 '11 at 13:14

marked as duplicate by Eliah Kagan, Eric Carvalho, Jorge Castro, Anwar, fabricator4 Jan 9 at 8:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers

First of all you can clean up something to recover some space, for example with

sudo apt-get clean

to remove the packages cache, and you can also remove the browser cache.

Next, if needed, you can move one of your system directories, e.g. /var, to a separate partition, this post can be of help.

share|improve this answer
Unfortunately, it looks like the OP on the post you linked to wasn't able to get that solution to work for the /root disk. – belacqua Jan 25 '11 at 17:08
@jgbelacqua -- I do not suggest to extend the /root disk, I suggest to move a directory of the root disk to a new partition, for example /var, this should have the same effect of provide more space, that is the problem of the OP. – enzotib Jan 26 '11 at 8:33
Thanks for the clarification. I was being very literal, to stay close the the wording in punith's post. Your insight into why this works for punith is helpful -- you might even add that to your answer? – belacqua Jan 26 '11 at 19:27

As I understand it, wubi installs Ubuntu on a raw disk image. In that case, it should be possible to expand the file. This would expand the "disk", but not partitions, so you need to expand those afterwards, and then expand the relevant filesystems.

I have never actually done this myself, but it should work. But you will have to figure out what file format the .disk-files use. It's most likely RAW images, in which case expansion is a piece of cake. You can find lots of resources about that on the web. Partitioning would be done from within the running Ubuntu, likewise the expansion of the filesystems, which you can do with resize2fs. (You should read its manual by entering man:resize2fs in Firefox, or typing man resize2fs in your terminal.

It isn't complicated.

share|improve this answer
Now I pose a question: If yuo have never done this yourself, can you guarantee it won't be complicated in the event something doesn't work right? – The Lord of Time Aug 4 '11 at 13:00
1  
Resizing a raw image and refitting the filesystem is not complicated and there are many guides out there. I've done this lots of times, so I know it isn't complicated. What I don't know, as I stated in the answer, is whether or not Wubi uses normal raw images. But I can guarantee you that it will be complicated if something goes wrong. You should never attempt anything like this without a working backup. – Jo-Erlend Schinstad Aug 5 '11 at 12:51
  1. If you are using ext4 try this:

    • Look up your root partition with df
    • Change the reserved space to 0.1 on your root (I will use /dev/sda1) with tune2fs
    • Check the free space again with df

      df
      sudo tune2fs -m 0.1 /dev/sda1
      df
      
  2. Remove obsolete kernel-image and kernel-header
share|improve this answer