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

雙系統移除 Linux 分區後修復 Windows 引導完整實錄

編輯:Linux 教學

在 Windows XP + Red Hat AS 5 雙系統環境中,直接從 Windows「磁碟管理」刪除 Linux 分區 (顯示為「未知」分區) 後,重開機將陷入 GRUB 救援模式或黑畫面。本文記錄完整救援流程,避開 fdisk /mbr 潛在風險。

問題成因

Linux 安裝時將 GRUB 寫入 MBR (主開機記錄) 接管引導。刪除 Linux 分區僅移除資料,MBR 仍指向已不存在的 GRUB 核心映像,導致引導失敗。

錯誤嘗試:fdisk /mbr (高風險)

# DOS 環境下
fdisk /mbr

雖能重寫 MBR 程式碼,但可能導致系統檔案遺失無法開機,官方文件明確警告謹慎使用。

推薦安全流程:Windows 開機修復工具

  1. 準備 Windows XP 安裝光碟或 PE 救援碟 (如「番茄花園」啟動維護盤)
  2. 啟動進入「系統引導修復」或「恢復主控台」
  3. 執行修復:
fixmbr        # 重寫 MBR (僅程式碼,保留分區表)
fixboot       # 修復開機磁區
bootcfg /rebuild  # 重建 boot.ini
  1. 重啟驗證 Windows 正常進入

事後檢查 boot.ini

# 確認無殘留 Linux 項目
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP" /fastdetect

最佳實踐總結

  • 移除 Linux 前:先在 Windows 建立開機修復碟
  • 刪除分區後:立即用修復碟執行 fixmbr + fixboot
  • 避免:直接用 fdisk /mbr、Linux 光碟救援模式 (除非熟悉 GRUB 安裝)
  • 現代系統:Windows 7/10/11 用 bootrec /fixmbr、/fixboot、/rebuildbcd

結語

雙系統移除 Linux 核心風險在 MBR 引導權交接。使用 Windows 官方修復工具 (fixmbr/bootrec) 最安全可靠,fdisk /mbr 為底層指令風險極高,非必要勿用。

Copyright © Windows教程網 All Rights Reserved