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

Windows XP 復原主控台必知指令:Bootcfg 修復開機、Fixmbr/Diskpart 移除 Linux 多重開機

編輯:XP 系統基礎知識

取得復原主控台兩法

  1. 無法開機:XP 光碟開機 → 選「復原主控台」。
  2. 正常系統預裝:光碟插入 →「執行」輸入 X:\i386\winnt32 /cmdcons(X 為光碟機代號) → 安裝 → 重開機開機選單出現「Microsoft Windows XP Recovery Console」。

核心指令詳解

Bootcfg:開機設定修復神器

  • bootcfg /? 顯示參數說明。
  • bootcfg /add 手動加入 XP 開機項,格式:multi(0)disk(x)rdisk(0)partition(y)(x=硬碟號,y=分區號)。
  • bootcfg /scan 自動掃描硬碟加入開機項。
  • bootcfg /copy 備份 boot.ini。
  • bootcfg /default 設定預設開機項。

重裝 Win98 導致 XP 無法開機時,用復原主控台執行 /add 或 /scan 即可修復。

Fixmbr + Diskpart:移除 Linux 保留 XP

以 Red Hat Linux 9 為例:

  1. 進入復原主控台 → fixmbr C: 重建 MBR,讓 XP 主分區接管開機(約 2 秒完成)。
  2. diskpart 進入選單模式 → 選取 Linux 分區(ext2/ext3/swap)→ 按 D 刪除。
  3. 同工具亦可建立 XP 分區。

無需第三方分區工具,純 XP 內建指令即可處理多重開機修復與 Linux 移除。

Copyright © Windows教程網 All Rights Reserved