问题描述:
前天更新了grub后,Ubuntu无法启动了,我用wubi在Windows 7下面安装的,把Ubuntu安装在了G盘,进入G:\ubuntu\disks\boot\grub目录一看,发现引导信息已经不见了,以前有三个文件:grub.cfg,wubildr,wubildr.mbr,把之前备份的放入这个目录之后还是无法启动,启动后出现如下信息:
GUN GRUB version 1.97~beta4
[Minimal BASH-like line editing is suported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device/file completions.]
sh:grub >
 

解决办法:
 

首先找到wubi安装的盘符,在ls的时候会出现(hd0,0)(hd0,1)(..)(..)(..),ls(hd0,?)会出现相关信息,观察lable的值。即可找到你所安装的Ubuntu的盘符。

设我们找到的分区是(hd0,3)
然后输入以下命令':
set root=(hd0,3)  回车
 
loopback loop0 /ubuntu/disks/root.disk  回车

set root=(loop0)  回车

linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda3 loop=/ubuntu/disks/root.disk 回车
 view plaincopy to clipboardprint?
sudo update-grub2 
sudo update-grub2
initrd /boot/initrd.img-2.6.31-14-generic  回车
boot  回车
稍等片刻,机器就可以启动了。输入命令的时候灵活运用TAB键来补全。
进入系统之后,
就可以彻底解决问题了。