File:/etc/default/grub

FlossDoc,自由中文開源知識庫

< File: | etc | default
Jump to: navigation, search
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
  • GRUB_DEFAULT - 設定預設啟動的清單項目。值可以為項目編號 (由 0 開始)、完整項目標題或 saved。例如:
GRUB_DEFAULT=0
GRUB_DEFAULT="Ubuntu, Linux 2.6.31-9-generic"
GRUB_DEFAULT=saved
  • GRUB_SAVEDEFAULT - 設定為 true 會自動把上一次在清單中被選擇的項目作為下次的預設啟動項目。
GRUB_SAVEDEFAULT=true
  • GRUB_HIDDEN_TIMEOUT - 設定啟動 GRUB 未顯示啟動清單的等待時間。一般 GRUB 啟動時會顯示一個空白的螢幕,待使用在此指定時間內按任何建時才顯示啟動清單,否則會直接啟動預設項目。0 值表示直接動預設項目而不等待按鍵。
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT=5
  • GRUB_HIDDEN_TIMEOUT_QUIET - 設定是否在未顯示啟動清單時顯示倒數時間。true 表示不顯示倒數時間,false 則顯示。
GRUB_HIDDENT_TIMEOUT_QUIET=true
  • GRUB_TIMEOUT - 設定啟動清單的時間。-1 表示沒有限時,等待直至使用者選擇任何清單。
  • GRUB_DISTRIBUTOR - 設定取得清單名稱的命令,例如 Debian、Ubuntu 或 Fedora 等。
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  • GRUB_CMDLINE_LINUX -
  • GRUB_CMDLINE_LINUX_DEFAULT -
  • GRUB_TERMINAL -
  • GRUB_DISABLE_LINUX_UUID
  • GRUB_GFXMODE -
  • GRUB_DISABLE_LINUX_RECOVERY -
  • GRUB_INIT_TUNE -
  • GRUB_DISABLE_OS_PROBER -

請參看

外部連結

Personal tools