文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>珠穆朗玛(Everest)发行版grub配置

珠穆朗玛(Everest)发行版grub配置

时间:2007-04-30  来源:biocyte

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 去掉,就可以回到我们久违的命令行启动式样,感觉很亲切。
相关阅读 更多 +
排行榜 更多 +
僵尸猎手小明

僵尸猎手小明

动作格斗 下载
狩猎波比

狩猎波比

动作格斗 下载
花海相机

花海相机

图像拍照 下载