I know this question may have been asked hundreds of times before but there doesn't seem to be one answer to how to solve it. I upgraded my computer to Ubuntu 13.10 and my computer was low on battery, and I unplugged it from the charger and then the computer shut off. I'm guessing it got into some corrupted state because now when I boot into Ubuntu, all i see the is Grub 2 menu :

Minimal bash-like line editing is supported. For the first word, tab lists possible
command completions. Anywhere else tab lists possible device or file completions. 

grub>

I originally installed Ubuntu with the Wubi Installer so I have a dual partition, one with Windows 7 and the other with Ubuntu 13.10. What can I do to get out of the grub shell?


Solution 1:

Did not figure out yet how to make the menu work. However, from this minimal grub, you can load an installed ubuntu; Just use the commands:

$ linux (hd0,gpt2)/boot/vmlinuz-3.11.0-12-generic.efi.signed root=/dev/sda2
$ initrd (hd0,gpt2)/boot/initrd.img-3.11.0-12-generic
$ boot

In above, use tab completion to obtain correct values. Eg, hd + tab will show you possible disks and partitions (gpt1, gpt2, ...) on the disk. As EFI will be in a first partition, your linux will normally be on a gpt2. You need the root option pointing to the name of the /dev in linux, so for the second on first hd, this normally will be /dev/sda2

The initrd loads the modules you need to talk to your hardware with linux, and boot starts the boot. Once in linux, you at least can start to try to fix the problem.