How do I do this all from Ubuntu? When I used Wubi there was a max size, and i ended up liking Ubuntu 10.04 so I kept it installed, but now i want to do just run W7 as a VM. I have around only 58GBs used and around 100GBs free, how can i move the 100GBs of just free space to Ubuntu with GParted or any other software?
Also, i've tried decreasing the size of the partion in W7 with 3rd party software as well as the included one, but both can't decrease it at all for some reason. Apparently it's some hidden fragmented file that the defrag and partition editors can't get too, thats why im asking how to do it all from Ubuntu...
This is because of the way WUBI works. WUBI is basically just a very big windows image file that can be removed just like any other program. It has no access to windows file system which is why you cant modify the partitions. (I bet you cant access any of your other windows 7 files?)
boot order
there is an online guide that details the entire process here:
For installing 7 in a VM you most likely want to get rid of unwanted components, e.g. with RTSe7enLite (running on Windows only)
For Ubuntu as your primary OS, it is better to install Ubuntu outside Wubi. Next step would then be setting up your VM within Ubuntu.
Don't forget to backup before you start!
You want to change of running Windows 7 directly with Ubuntu running in a Wubi container to running Ubuntu directly with Windows 7 running in a VM. The more straighforward and safe way is a backup, format and reinstall, as in richzilla answer. The more convoluted way is to make space, install linux, create a new VM for Windows, and migrate all your data.
The problem is that windows can't reduce the partition size because some files (probably ntfs own metadata) are in the way. You can't move data when it is in use. Ubuntu can't modify the partition when booted from wubi as Ubuntu itfself is using the filesystem.
The best way is to use a liveCD with gparted to reduce the partition size. It will move the data, and create new partitions as needed. It's very important to have a recent and verified backup of all your data. Remember that your wubi container is also in that filesystem.
Then you could do a new install of Ubuntu, move all your data out of the wubi container and uninstall wubi, freeing that space . W7 would be accesible by dual boot. If that is an aceptable outcome you can stop there, and probably should.
There are tools to convert a Windows install into a VHD container but it is designed to run in MS Virtual PC, Virtualbox can run a machine using a VHD but the change in simulated hardware means that windows will most probably not work. The best bet is a new install and migrating the windows data.