I tried to move my WUBI installation according to this: Move WUBI installation of Ubuntu to a different partition in Windows. But when I boot Ubuntu, it can't find the root.disk file. Is there any way to restore it? I have Ubuntu 12.10. Please help.
1 Answers
Do you have a copy of the original root.disk in a safe place? If not restore the original file from Windows backup and keep in a safe place.
- Uninstall Ubuntu from control panel.
- Reboot.
- Reinstall using WUBI using exactly the same specifications as the original.
- Reboot to Ubuntu and check that Ubuntu boots correctly.
- Reboot to Windows and copy the original from the safe place to the
boot location, such as
C:\Ubuntu\Disks. - Reboot to Ubuntu.
One more step
See https://askubuntu.com/a/55029/14916 for details (Thanks to bcbc for pointing out this part.) The following is taken from that answer:
Assuming Ubuntu is being moved from D: to C: and if D: is /dev/sda2 and C: is /dev/sda1, then you'd hit 'e' on the first entry of the grub menu and change:
set root=(hd0,2) becomes set root=(hd0,1)
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 root=UUID=xxxxx
Hope this helps