Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> Windows 技巧

多重開機修改 GRUB 啟動順序:編輯 /etc/grub.conf 設定 Windows XP 為預設開機

編輯:Windows 技巧

雙系統 Fedora 8 + Windows XP,預設開機進 Linux。修改 GRUB 設定檔將 Windows 設為預設。

操作步驟

  1. 進入 Fedora,備份 /etc/grub.conf。
  2. gedit /etc/grub.conf 編輯。
  3. 關鍵行:default=2 (0 起算,Windows XP 為第 3 項索引 2)。
  4. 若將 Windows 移至選單第一項 (索引 0),則改 default=0。
  5. timeout=5 可自行調整選單等待秒數。
  6. 存檔重開機生效。

grub.conf 結構說明

title Fedora (2.6.24.5-85.fc8)   # 索引 0
root (hd0,7)
kernel /vmlinuz-... ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-...img

title Fedora (2.6.23.1-42.fc8)   # 索引 1
...

title Windows_XP                 # 索引 2
rootnoverify (hd0,0)
chainloader +1

原理:GRUB 依 title 順序編號 0,1,2...,default=N 指定預設啟動項。修改此值即可切換預設作業系統,無需重裝開機管理程式。

Copyright © Windows教程網 All Rights Reserved