# Ubuntu – Make W7 install as small as possible and increase Ubuntu size

10.10partitioningwindowswindows 7wubi

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?)

• Uninstall Wubi via the normal windows 7 uninstall process (making sure to back up any files you want to keep from your linux install)
• If you want to dual boot (run windows and ubuntu side by side) use the windows disk management tool to create a big enough partition for your linux install
• ensure you have install discs for windows 7, many manufacturers supply only repair discs meant to rescue a corrupted partition, these wont allow you to install windows 7 on your vm.
• burn a copy of ubuntu to a dvd
• Backup absolutely anything you might need in the future
• check everything has backed up correctly
• check your backup again (its quite important, you might have noticed)
• set your bios to boot from your cd drive, theres far too much variance bios setups to explain how to do this, but it will be an option worded something along the lines of boot order
• insert the ubuntu dvd
• Think carefully, the next process will format your hard drive, youll lose everything thats on it
• when the menu comes up select the install option you want: Use the entire hard drive will install linux on the selected drive, completely formatting it
• if you select specify partitions manually and choose the partition you created earlier you will be able to install both os's side by side.

there is an online guide that details the entire process here: