Windows和Linux双系统Grub菜单编写技巧

王朝system·作者佚名  2008-05-18
窄屏简体版  字體: |||超大  

安装两个系统时,选择默认系统的进入,可有时候,重装系统会引起另一个系统无法进入。

一、先说在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记住,以免以后麻烦。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航