I have installed Ubuntu on my D: partition using Wubi. Is there any way in which I can remove my Windows from C: drive and move my existing Ubuntu installation to C: drive and make it a regular install.
Ubuntu – How to convert Wubi install into regular install
system-installationwindowswubi
Best Answer
Please refer to: https://help.ubuntu.com/community/MigrateWubi
This above Wiki has a downloadable bash script that migrates a Wubi install to a partition. It also has a link to the manual instructions required to migrate a Wubi install, although these are not recommended because the script contains many additional safety checks. The script does the following:
The following is based on the README file included with the script:
The script is based on the wubi-move-to-partition script from Agostino Russo taken the Wubi Guide (https://wiki.ubuntu.com/WubiGuide).
The first version updated the wubi-move-to-partition script to correct a few problems and deprecated commands, as well as to update it to support Grub2. It only worked on Wubi installs from 9.10 and later.
The current version supports Ubuntu installs from 8.04 to 12.10 and adds the following features:
Usage:
sudo bash wubi-move.sh [OPTION] target_partition [swap_partition]
The source for the script is maintained here: https://github.com/bcbc/Wubi-move Releases are tagged and Issues can be raised if required.
Note: the script can be run from a live environment, e.g. to replace Windows, although it is simpler to manually partition and run it directly from the Wubi install (in my opinion). There are some more screenshots of the script (using the previous release) here that show how to migrate using a root.disk or to separate partitions.