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

刪除 GRUB 開機選單,恢復 Windows 7/10/11 引導:bootsect 一鍵修復

編輯:Windows XP 系統介紹

最簡單方法:Windows 內建 bootsect

  1. 以「系統管理員身分執行」開啟「命令提示字元」 (Win+X → A)。
  2. 輸入:bootsect /nt60 all → Enter。
  3. 提示「Bootcode was successfully updated on all targeted volumes」即完成。
  4. 重開機,GRUB 消失,直接進入 Windows。

無法進入 Windows 時的修復

方法一:Win7/10/11 安裝光碟/USB 修復

  1. 光碟/USB 開機 → 「修復電腦」→ 「疑難排解」→ 「進階選項」→ 「啟動修復」/「命令提示字元」。
  2. 命令提示字元中執行 bootsect /nt60 all 或 bootrec /fixmbr + bootrec /fixboot + bootrec /rebuildbcd。

方法二:PE 系統下 DiskGenius 修復

  1. 進入 WinPE (微軟官方/優啟通/微PE 等)。
  2. 開啟 DiskGenius → 選擇系統磁碟 → 「工具」→ 「修復啟動項」→ 選擇「修復 Windows 啟動」→ 確定。

原理說明

bootsect /nt60 將 MBR/VBR 寫入 Windows NT 6.x (Vista/7/8/10/11) 相容啟動程式碼,覆蓋 GRUB 的 Stage1,使 Windows Boot Manager (BOOTMGR) 重新掌控開機流程。

常見誤區

  • 誤以為刪除 Linux 分區即可移除 GRUB —— GRUB 核心程式碼寫在 MBR/VBR,分區刪除不影響。
  • 使用 fdisk /mbr (DOS 指令) —— 僅修復 MBR,不修復 VBR,UEFI/GPT 磁碟無效。

UEFI 系統特殊說明

UEFI + GPT 磁碟無 MBR/VBR 概念,GRUB 作為 EFI/ubuntu/grubx64.efi 存在於 ESP 分區。修復方式:
1. 進入 BIOS 刪除 ubuntu/grub 啟動項。
2. 或 Windows 下 bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi。
3. 或刪除 ESP 分區內 EFI\ubuntu 資料夾 (需掛載 ESP)。

Copyright © Windows教程網 All Rights Reserved