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


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

  • 1
  • 2
  • 下一页

相关内容