Username: Password:

Windows和Linux双系统Grub菜单编写技巧
来源: ChinaUnix博客  作者: ChinaUnix博客   发布时间:2008-01-01 08:15:00



安装两个系统时,选择默认系统的进入,可有时候,重装系统会引起另一个系统无法进入。
一、先说在windows下引导linux
在window下可用WinGrub工具生成的MENU.LST来引导linux , 编辑他, 这样就能够直接在硬盘上安装linux了。我的硬盘是WD 160G,以前用redhat9.0光盘安装时,识别不了硬盘,在网上下了个 Fedora-8-i386-DVD.iso
这是我编辑的MENU.LST,用记事本能够打开。
timeout 10
title Windows at (hd0,0)
root (hd0,0)
chainloader +1
title Fedora
root (hd0,6)
kernel (hd0,6)/vmlinuz
initrd (hd0,6)/initrd.img
注意,我这里写(hd0,6),是因为我挂载的iso在F盘,用WinGrub 点tools =》partioinlist 得
########
timeout 10
title Windows at (hd0,0)
root (hd0,0)
chainloader +1
title Fedora
root (hd0,6)
kernel (hd0,6)/vmlinuz
initrd (hd0,6)/initrd.img
########
改成
#######
timeout 10
title Windows at (hd0,0)
root (hd0,0)
chainloader +1
title Fedora
root (hd0,8)
kernel /boot/vmlinuz-2.6.24.3-12.fc8 ro root=LABEL=/rhgb quiet
initrd /boot/ initrd-2.6.24.3-12.fc8.img 注意:这里的文档名在第一次安装linux完成后就要记住,不同版本文档名可能不相同。我这里写的只是我自己的,请大家注意。去/boot/下记住文档名就行。
就能够在windows下引导linux,就算重装XP后,看不到linux菜单,也能够重新编辑他,就能够恢复linux菜单。
二、在linux下引导XP
vi 编辑 /boot/grub/ 下的grub.conf,
和上面的相同,就会出现XP菜单。
不会编写grub的,能够在第一次安装完成后把grub记住,以免以后麻烦。


本文来自ChinaUnix博客,假如查看原文请点:http://blog.chinaunix.net/u/31/showart_500491.html

喜欢本文,那就收藏到:

    Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网
相关评论  我也要评论
还没有关于此文章的相关评论!
  • 昵称: (为空则显示guest)
  • 评论分数: ★ ★ ★★★ ★★★★ ★★★★★
  • 评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
  • 导航
    赞助商
    文章类别
    订阅