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

PE 環境下硬碟安裝 Win7 完整教學與 0xc000000f 錯誤排除

編輯:Windows 7 系統介紹

無光碟機、不想燒錄 DVD,利用 PE (WinPE) 從硬碟安裝 Windows 7 是最快捷方式。本文提供標準流程與常見 Status: 0xc000000f (開機裝置不可存取) 錯誤完整排除方案。

前置準備

  • 可開機 PE 隨身碟/光碟 (含映像檔工具、磁碟工具)
  • Windows 7 安裝映像檔 (ISO) 解壓至 D:\Win7
  • 目標 C: 磁碟已格式化 (NTFS)、設為作用中分割區

標準安裝流程

  1. PE 下將 D:\Win7\bootmgr、D:\Win7\boot\ 資料夾複製至 C:\ 根目錄
  2. 建立 C:\sources\,複製 D:\Win7\sources\boot.wim 至其中
  3. CMD 執行開機磁碟寫入:C:\boot\bootsect.exe /nt60 C: (成功顯示 "Bootcode was successfully updated")
  4. 移除 PE 隨身碟,重新開機 → 進入 Win7 安裝程式
  5. 關鍵步驟:不要點「立即安裝」,點左下「修復電腦」
  6. 系統復原選項 → 選擇第一項 → 「命令提示字元」
  7. CMD 切換至安裝源:D: → cd Win7\sources → setup.exe
  8. 進入正常安裝介面,選 C: 格式化 → 下一步 → 完成安裝

0xc000000f 錯誤原因與排除

錯誤訊息:The boot selection failed because a required device is inaccessible.

核心原因:第 1-3 步驟檔案複製遺漏、路徑錯誤、或 bootsect.exe 未成功寫入開機磁區。

排查清單:

  • ✅ C: 根目錄有 bootmgr、boot\ 資料夾
  • ✅ C:\sources\boot.wim 存在且大小正確 (~200MB+)
  • ✅ bootsect.exe /nt60 C: 回傳 "successfully updated"
  • ✅ C: 分割區標記為「作用中」(diskpart → select partition X → active)
  • ✅ BIOS/UEFI 開機順序正確(Legacy/UEFI 模式需與安裝媒體一致)

分步執行備援指令(若單行失敗)

C:
cd boot
bootsect.exe /nt60 C:

# 安裝階段
D:
cd Win7
cd sources
setup.exe

UEFI 系統額外注意

  • 需建立 EFI 系統分割區 (ESP, FAT32, 100-500MB)
  • 將 bootmgfw.efi 複製至 EFI\Microsoft\Boot\
  • 使用 bcdboot 建立 BCD:bcdboot C:\Windows /s S: /f UEFI (S: 為 ESP 代號)
Copyright © Windows教程網 All Rights Reserved