手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux下GRUB的设置文件及设置解读

[日期:2009-10-11] 来源:hi.baidu.com/rhskyubuntu  作者:rhskyubuntu [字体:大 中 小]

GRUB(统一引导装入器)是基本的Linux引导装入器。
其有四个作用,如下:

1.选择操作系统(如果计算机上安装了多个操作系统)。
2.表示相应引导文件所在的分区。
3.找到内核。
4.运行初始内存盘,设置内核和相关模块。

GRUB的设置文件是

Fedora的是在/boot/grub/grub.conf

Ubuntu中是在 /boot/grub/menu.lst

/boot/grub/grub.conf中典型的GRUB设置文件,如下图

[root@localhost ~]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:   You do not have a /boot partition.   This means that
#       all kernel and initrd paths are relative to /, eg.
#       root (hd0,9)
#       kernel /boot/vmlinuz-version ro root=/dev/hda10
#       initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=30
splashimage=(hd0,9)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.667)
       root (hd0,9)
       kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
       initrd /boot/initrd-2.6.9-1.667.img
title Other
       rootnoverify (hd0,0)
       chainloader +1

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款