红联Linux门户
Linux帮助

Everest发行版grub配置

发布时间:2007-05-01 00:36:25来源:红联作者:JQinaioo
Everest 的grub和别的系统有所区别。他用了系统上的grub.conf来配置,应该是grub很多东西都还在系统盘上,有点像windows的loader。启动内核也需要指出根目录。以我的机器为例。grub.conf的位置在/boot/grub/grub.conf

引导机器应该使用的命令为

root (hd0,1)
kernel /boot/vmlinuz-2.6.21.0-22 ro root=LABEL=/
initrd /boot/initrd-2.6.21.0-22.img

root=LABEL=/ 应该是根据卷标来表示, 也可以改成这样的方式:/dev/hda*。装了两个系统,修改了第二个系统的grub.conf来引导第一个系统。但是总不能装一次系统,配置一次第二个系统的grub.conf吧。启动系统,按ESC,按C,进入grub命令行,打help,发现有个confingurefile 命令,输入

confingurefile (hd0,1)/boot/grub/grub.conf

grub自动重起,发现果然是原来系统修改过的启动项,感觉很好。不过再次重启后,grub的配置又回到原来的状态。应该是个Bug。

我的grub.conf

timeout=5
default=0
timeout=5
gfxmenu (hd0,1)/boot/message
title Everest work
root (hd0,1)
kernel /boot/vmlinuz-2.6.21.0-22 ro root=LABEL=/
initrd /boot/initrd-2.6.21.0-22.img
title Everest (2.6.21.0-22)
root (hd0,5)
kernel /boot/vmlinuz-2.6.21.0-22 ro root=LABEL=/
initrd /boot/initrd-2.6.21.0-22.img
title Test
root(hd0,5)
kernel /boot/vmlinuz-2.6.21.0-22 ro root=LABEL=/mnt/test vga=788 splash=silent
initrd /boot/initrd-2.6.21.0-22.img
title Other
rootnoverify (hd0,0)
chainloader +1

也发现为什么我test的系统根目录会出问题了。在root=LABE=/mnt/test 那里。如果把后面的vga=788 splash=silent 去掉,就可以回到我们久违的命令行启动式样,感觉很亲切。
文章评论

共有 0 条评论