引导程序是驻留在硬盘第一个扇区(MBR、主引导记录)的程序,grub是一个功能强大的多系统引导程序,专门处理Linux与其它操作系统共存的问题。下面就介绍一下grub.conf文件里的具体内容及其含义。
grub配置文件路径:/boot/grub/grub.conf ,/etc/grub.conf为/boot/grub/grub.conf的链接文件
使用命令可以查看grub.conf文件内容
[root@centos6 ~]# 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 have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS 6 (2.6.32-696.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-696.el6.x86_64 ro root=UUID=4642135f-20db-48c8-af2f-971df2956961 rd_NO_LUKS KEYBOARDT