Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

移除 Linux 後仍出現 GRUB 開機選單?修復 MBR 恢復 Windows 啟動

編輯:Windows XP 系統介紹

安裝 Linux 時若選擇「將 GRUB 寫入 MBR」,GRUB 會接管開機流程。單純刪除 Linux 分區**不會**自動移除 MBR 中的 GRUB,因此重開機仍會跳出 GRUB 選單,無法直接進入 Windows。

方法一:使用 Windows 開機磁碟修復 MBR(傳統做法)

  1. 以 Windows 98/Me 開機磁碟或 DOS 開機碟啟動電腦。
  2. 在命令提示字元輸入:fdisk /mbr 並按 Enter。
  3. 重新啟動,MBR 將恢復為 Windows 標準啟動程式碼。

方法二:使用 Windows XP 復原主控台(推薦,無需軟碟)

  1. 以 XP 安裝光碟開機,選擇「修復」進入復原主控台(按 R)。
  2. 選擇 Windows 安裝路徑,輸入 Administrator 密碼。
  3. 執行指令:fixmbr \Device\HardDisk0
  4. 輸入 exit 重開機,完成修復。

原理: fixmbr 會將標準的 Windows MBR 程式碼寫入硬碟第 0 磁區,移除 GRUB/LILO 等非 Windows 開機管理程式,將開機控制權交還給 NTLDR。

Copyright © Windows教程網 All Rights Reserved