Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had Wubi with Ubuntu 10.04. I just upgraded it to 12.04, using the update manager. After the upgrade finished, I rebooted, but now, when I select "Ubuntu" from the boot menu, I get a command-line prompt and cannot continue.

When I write "boot" in the prompt, I get "No kernel loaded"...

Please help, I have important files in my Wubi...

share|improve this question
    
what is the other operating system you have installed? Windows 7? –  Salem Oct 10 '12 at 13:03
    
Also please consider editing your text to provide a question of what you need: make Wubi work again? recover your files? This will improve the probability the answers given are in context. –  Salem Oct 10 '12 at 13:25
1  
You can get readonly access to the \ubuntu\disks\root.disk from Windows using this: ext2read.blogspot.ca –  bcbc Oct 10 '12 at 16:09
    
@bcbc, thank you! that was just what I needed. However, I just found out that most of my important files were on the "/host" folder, which makes things much simpler, as I can simply re-install Wubi and copy all files from there. –  Erel Segal Halevi Oct 14 '12 at 17:08

1 Answer 1

up vote 2 down vote accepted

Steps to make Wubi work again

When you reach the prompt, try those commands (one at each line)

insmod ntfs
set root=`(hd0,msdos2)`

In the second line i reference (hd0,msdos2) as being the partition where Windows is installed (and Wubi by extension). This means the partition is on the first disk (hd0) and on the second partition (msdos2). This is true in a normal Windows7 setup. If you are using Windows XP this will probably be (hd0, msdos1).

loopback loop0 /ubuntu/disks/root.disk
set root=loop0

I think that path is the default, if it raises any error just boot on Windows and find the right path.

linux /vmlinuz root=/dev/sda2 loop=/ubuntu/disks/root.disk ro  text
initrd /initrd.img

Again here i make the assumption that the path provided is correct and Wubi is installed on the second partition of the only disk (the usual). If this is not the case update the provided path and replace sda2 for the correct device.

This should boot you in "terminal mode" (no GUI). If it starts ok you can try issuing the following command, after login:

sudo update-grub

After that when you reboot the grub entries should be corrected.

share|improve this answer
    
Thank you for the detailed answer. –  Erel Segal Halevi Oct 14 '12 at 17:07

Your Answer

 
discard

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.