Fedora 8中GRUB 配置文件讲解

跟其他Linux发行版一样,Fedora8使用Grub作为32位和64位X86系统的启动加载器(bootloader)。grub的配置文件主要是/boot/grub/grub.conf,而/boot/grub/menu.list是这个文件的软连接(soft link)。该配置文件样式如下。

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/sda7
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.1-42.fc8)
root (hd0,0)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/
initrd /initrd-2.6.23.1-42.fc8.img
title WindowsXP
rootnoverify (hd0,0)
chainloader +1

主要分为三个部分,开始的注释(#开头)不算,依次是通用的选项,Fedora 8的启动选项和Windows系统的启动选项。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/da648bb0e669ae8dfcd04c785f778873.html