Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been using Ubuntu 13.04 that was installed inside Windows 8 on my C drive. I did a lot of customization to Ubuntu to make it more beautiful, and had lots of software installed.

I had to reinstall Windows as it got corrupted, and before reinstalling Windows (I did a fresh installation) I made a backup of 'Ubuntu' folder (that's in C drive) hoping that after reinstalling I could manually set a path to wubi to avoid redoing all my efforts to make my Ubuntu as earlier. I used this How To Restore the Wubi Ubuntu Bootloader tutorial as a reference. By doing this I am getting:

error: no such device: FOC............. (a long code)
error: unknown filesystem.
error: You need to load the kernel first.

Press any key to continue.....

So, I tried one more thing. I reinstalled Ubuntu on C drive, and replaced the Ubuntu folder by an older one that I took a backup of. Getting:

error: no such device: FOC............. (a long code)
error: file '/ubuntu/disks/root.disk' not found

Press any key to continue..... 

So my question is: Am I thinking of doing some infeasible thing, or is it possible to run old Ubuntu in a new Windows installation. If so, how?

I really want to get my Ubuntu back. I appreciate any help.

share|improve this question
Please read this for limitations on using WUBI, Windows 8 and Ubuntu 13.04:… – Rinzwind Jul 27 '13 at 10:25
Thanks Rinzwind for response but I use to install ubuntu using cmd 'wubi.exe --force-wbi' and it enables 'install inside windows' option back... Can you plz lemme know is it possible to restore my old ubuntu inside new windows installaton? – vishal verma Jul 27 '13 at 15:18
up vote 0 down vote accepted

You're nearly there - the problem is that the Wubi root.disk remembers the partition that it is installed on via it's UUID and since you've gone and reinstalled Windows it has changed.

Wubi boots via a (simplified) two step process. The first is Grub loading the root.disk which is generic. Then Grub load the grub.cfg (Grub menu) from the root.disk. This is where your problem lies.

So you can just hold down the Shift key after selecting Ubuntu and then, once the Grub menu appears, press C to get to a Grub command prompt: grub>.

Enter the following to boot the Wubi install, and then run sudo update-grub from a terminal after logging in:

search -s -f -n /ubuntu/disks/root.disk
probe --set=diskuuid -u $root
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /vmlinuz root=UUID=$diskuuid loop=/ubuntu/disks/root.disk ro quiet splash
initrd /initrd.img
share|improve this answer
Hey bcbc... I am able to get into my ubuntu now...I am so happy... thanks thanks thanks.. u r awesome....... – vishal verma Jul 27 '13 at 19:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.