存档

2010年2月5日 的存档

Windows7 下用wubi装ubuntu9.10更新后无法启动

2010年2月5日

http://hi.baidu.com/%BF%A7%E0%AC%C5%C92_0/blog/item/1ef4df09ab36079e0b7b8257.html

首先,当显示sh:grub的时候,敲入如下代码
ls,会显示当前硬盘分区的情况,像我的结果就是
(hd0) (hd0,1) (hd0,5) (hd0,6)

(hd0,1)是C盘,我把ubuntu安装在D盘,就是(hd0,5),其实只要知道有哪几个分区就行了,可以一个个试的,然后是下面的代码:

set root=(hd0,5) enter
loopback loop0 /ubuntu/disks/root.disk enter
set root=(loop0) enter
linux /boot/vmlinuz-2.6.31-14(TAB键补齐) root=/dev/sda5 loop=/ubuntu/disks/root.disk enter
initrd /boot/initrd.img-2.6.31-14(TAB键补齐) enter
boot enter

不出意外的话,ubuntu就能够正常启动了,启动之后终端中键入如下代码:
sudo update-grub2 enter

然后复制 /boot/grub/目录下的grub.cfg,到/host/ubuntu/install/boot/grub/目录下面,重启ubuntu应该就可以了
如果没有install下面没有boot文件夹的话,自己新建吧,我就是自己建的

许石南 技术

© 2008-2009 cloved.cn, Power By WordPress, Design By sheath, WordPress Themes by mg12.

Full RSS - Comments RSS - 粤ICP备09006273号

免责声明:本站所有内容均来源于互联网,若侵犯您的权利,请来信告知,本站会第一时间处理.