无忧启动论坛

标题: grub4dos怎样引导redhat 9.0 linux? [打印本页]

作者: fpx_123    时间: 2008-7-7 16:50
标题: grub4dos怎样引导redhat 9.0 linux?
title Red Hat Linux (2.4.20-8)
root (hd0,2)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=LINUX
initrd /boot/initrd-2.4.20-8.img
title Windows XP
rootnoverify (hd0,0)
makeactive



这个我用redhat9.0 自带的grub能引导linux  
我该这样让grub4dos引导linux呢?
我的windows 下有c d e f 盘 然后就是linux
谢谢

[ 本帖最后由 fpx_123 于 2008-7-7 04:58 PM 编辑 ]
作者: 不点    时间: 2008-7-7 17:42
grub4dos 与 gnu grub legacy 完全兼容,你可以原封不动照搬 Linux 下的菜单。

或者你可以用一些 grub4dos 特有的、更灵活的引导方式,比如这样:

title Red Hat Linux (2.4.20-8)
find --set-root /boot/vmlinuz-2.4.20-8
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=LINUX
initrd /boot/initrd-2.4.20-8.img
boot

title Windows XP
find --set-root /ntldr
chainloader /ntldr
boot

顺便指出你的一个错误:

title Windows XP
rootnoverify (hd0,0)
makeactive

上面这个菜单是无法成功启动 XP 的,原因是缺少一条 chainloader 命令。
作者: fpx_123    时间: 2008-7-7 19:10
谢谢不点兄弟啊  !




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3