Wubi 9.10 grub启动问题
今天早上把小本的ubuntu更新了下,然后就关机回学校了。谁知道到学校发现重启后grup出现黑屏,并有如下提示:
Minimal BASH-like line editing is supported. Fot the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.
grub>
上网本的ubuntu是win7里用wubi安装的,然后我什么百度 GG了下,发现这是由于grub2的一个bug造成的,具体描述为
“To be able to boot Wubi, Grub2 has to access the ntfs partition which is hosting Wubi. There is a bug in Grub 2, which prevents Grub2 to read any files on an ntfs partition beyond the first 4GB. If any of the boot files is outside of the 4GB limit, booting will fail. Depending on which boot file is outside the limit, the symptoms can be quite different. Since any kernel or Grub update relocates some of the boot files, you might be hit by this bug at any time.”
在这里找的解决办法
grub>ls
grub>ls (hd0,x)/ #找出WUBI安装的盘,里面有ubuntu/这个目录。
grub>insmod ntfs #加载ntfs模块,因为WUBI将ubuntu安装到了我分的ntfs盘上
grub>set root=(hd0,5) #这里(hd0,5)就是我找到的ubuntu安装的分区
grub>ls $Boot #找到我们BOOT分区的UUID,下一步要用到,我这里显示出来的是2250018e50016a3d
grub>search –no-floppy –fs-uuid –set 2250018e50016a3d #这里的UUID就是上一定找出来的那个
grub>loopback loop0 /ubuntu/disks/root.disk #设loop0,WUBI装ubuntu安装成了一个root.disk文件
grub>set root=(loop0) #重设root
grub>linux /boot/vmlinuzxxxxxxxxx (tab补全即可) root=/dev/sda5 loop=/ubuntu/disks/root.disk ro quiet splash #加载内核
grub>initrd /boot/initrd.imgxxxxxxxxxxxx(tab 补全即可) #不用说大家都知道
gurb>boot
ENTER就可以启动了。进入熟悉的系统,打开终端
sudo update-grub2
sudo reboot
Everything work fine now!

血离
15 三, 2010
WOW~~~