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

Windows系統新增Ubuntu啟動項:Grub4dos + BCDedit/Boot.ini雙法配置

編輯:關於 Windows

Ubuntu安裝在Windows之後且Boot Loader未裝MBR(裝在/boot或/分區),重開機不見Ubuntu啟動項。用 Grub4dos 掛載Ubuntu核心映像並加入Windows啟動選單。

準備工作

  1. 下載 Grub4dos 0.4.4,提取 grldr、grldr.mbr 至C槽根目錄。
  2. 若系統已有其他版 grldr,需將新版改名 gdldr,用WinHex編輯 grldr.mbr 將內部 grldr 字串替換為 gdldr,避免衝突。

加入啟動項

Win7/8/10:BCDedit命令

bcdedit /create /d "GRUB MENU" /application bootsector
bcdedit /set {ID} device partition=C:
bcdedit /set {ID} path \grldr.mbr
bcdedit /displayorder {ID} /addlast

{ID} 為第一條指令生成的GUID,後續指令全部替換。

WinXP:編輯Boot.ini

末行新增:C:\grldr="ubuntukylin 14.04"

配置Grub4dos選單

編輯 menu.lst(C槽根目錄)新增:

title ubuntukylin 14.04
find --set-root --ignore-floppies --ignore-cd /grub/i386-pc/core.img
kernel /grub/i386-pc/core.img
boot

重啟即見Ubuntu啟動項。注意:不同Ubuntu版本 menu.lst 寫法可能不同,請查閱對應文件。

Copyright © Windows教程網 All Rights Reserved