有惊无险,修复 grub

昨天无聊,忍不住又想折腾 Archlinux。下载了archboot,但是再安装过程中因为不能识别我的无限网卡而可耻的失败鸟,看看时间不早了就放弃了。
结果今天开机发现grub坏掉了 -_-#
手头上资源有:

  1. Archlinux 2008.6 CD
  2. Ubuntu 7.10 CD
  3. Windows 2003 冷风精简版

具体的失败步骤就不写了,只说结果

  1. Archlinux grub进命令行模式,kernel识别不了
  2. Ubuntu 7.10 不认识 EXT4文件格式
  3. Windows 2003 冷风精简版没有修复模式

实在想不出别的办法,只能先启动到位于(hd0,0)的windows了,这需要用到Archlinux CD,因为它有grub菜单
在grub界面按c进入命令行模式
> rootnoverify (hd0,0)
> makeactive
> chainloader +1
> boot
然后就进入windows引导菜单了,惊喜的发现有安装过grub for dos
进入grub for dos
按c进命令行模式
> root (hd0,11) //我的/boot分区
> kernel /vmlinuz-2.6.28-13-generic root=/dev/sda15 ro quiet splash
> initrd /initrd.img-2.6.28-13-generic
> boot

偶也,成功引导了。
进入系统后,在终端执行sudo grub
> find /grub/menu.lst
输出的 hd(x,y)就是你的/boot位置了
> root (hdx,y)
> setup(hdx)
如果这里输出的有success那就是说成功了
> quit //退出

然后重启就能看到grub已经修复了

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
This entry was posted in Uncategory. Bookmark the permalink.

One Response to 有惊无险,修复 grub

  1. soho21249 says:

    呵呵,arch下载半年,没折腾

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>