歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux啟動配置文件grub.conf詳解

Linux啟動配置文件grub.conf詳解

日期:2017/2/28 16:47:11   编辑:Linux教程

Linux 啟動配置文件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/sda2
# initrd /initrd-version.img
#boot=/dev/sda
//以上是grub.conf 的一些解釋

default=0 //默認從下面系統列表的第一個啟動
timeout=5 //默認啟動等待時間是5秒鐘
splashimage=(hd0,0)/grub/splash.xpm.gz //系統選擇菜單背景所在的位置
hiddenmenu //隱藏菜單
title Fedora Core (2.6.11-1.1369_FC4) //在grub界面所顯示的系統名稱 (可以任意該動)
root (hd0,0) //啟動時從IDE接口的第一塊硬盤第一個分區啟動
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet //啟動的內核版本,可以在後面添加內核參數
initrd /initrd-2.6.11-1.1369_FC4.img

Copyright © Linux教程網 All Rights Reserved