So you installed Ubuntu or Kubuntu on your PC through WUBI and assigned only 5 GB to it thinking you won't be doing anything on it. But, then you start installing packages and now there's really no more space available. What do you do? Re-install it again? No. Here's a quick tutorial on how you can increase the disk space of your Linux distro. This method only works for the installation made through WUBI.
First of all download this file and extract the content. Save the extracted wubi-resize_1.4b file on your desktop.
Now open up Terminal and type :
1 cd Desktop
For usage instructions about the file type :
1 bash wubi-resize_1.4b.sh --help
Now, let us suppose your current Ubuntu disk space is of 5 GB and you want to increase it to 15 GB. First of all, make sure you have 15 GB of disk space (plus enough free space for Windows.) After you have made sure there is enough disk space, enter this on the Terminal that you have up and running on your Ubuntu:
1 sudo bash wubi-resize_1.4b.sh 15
The 15 on the end denotes the new disk space that you would like to have i.e. 15 GB in this case. Now, wait till it completes processing and dumping the information.
You will have to wait for a while. Keep on checking the information on the Terminal. At one point, it should stop and say that the process is complete. Once it completes, you have to restart and log in to your Windows Operating System. Then you need to go to the Linux installation directory and rename the root.disk file. For example, if I had installed Ubuntu on D:Movies, here's what I'd do.
Go to :
What you are basically doing is that you're changing the virtual disk by renaming the new dump file as the real virtualdisk. You should not remove the OLDroot.disk file though, not until you make sure everything works properly. Just restart your computer and log in to Linux.
Check out the disk space, if it shows no error and that your space has increased then you could remove the OLDroot.disk file, but if there's any error, simply rename the OLDroot.disk file back to root.disk. There are no known issues regarding this method, so I don't think you'll face any problem at all.
By the way, the maximum disk space you can get by using this method is limited to 32 GB. If you want more disk space, you should consider moving into Linux completely.