- Make backup copy of all important data in Ubuntu into an external device. If the following does not work, you may lose all your data.
- Copy the
root.disk file from
D:\Ubuntu\Disks to a safe place.
You may put it in your "My Documents" for the time being.
- Uninstall Ubuntu using Control Panel.
- Install Ubuntu in C: using WUBI. Make sure when installing to C: that you choose the same Disk Size as the Disk you already have. This prevents errors.
C:\Ubuntu\Disks\root.disk with the root.disk you had
One more step
See http://askubuntu.com/a/55029/14916 for details (Thanks to @bcbc for pointing out this part.) The following is taken from that answer:
/dev/sda1, then you'd hit 'e' on the first entry of the grub menu and change:
set root=(hd0,2) becomes
Delete the line -
search --no-floppy xxx (as this overrides the previous set root command using the old UUID)
linux /boot/vmlinuz-xxxx root=/dev/sda2 ... becomes
linux /boot/vmlinuz-xxx root=/dev/sda1 ...
This is a one-time override - hit Ctrl+X to boot, and make sure you run
sudo update-grub after booting to fix the grub.cfg menu so it works the next time.
PS: There may be some variations.
(hd0,2) could be
(hd0, msdos2) or
(/dev/sda, msdos2) depending on the version of Grub. Also
root=/dev/sda2 may be