【BIOS】
#############################
 MBR (Master Boot Record)
 —————————-
 ※ 位於硬碟的第一個磁區。
 ※ 裡面包含「啟動代碼」及一個64Byte的「硬碟分割區表」。
#############################
           ↓↓↓
#############################
 Disk Partition Table (DPT-磁碟分割表)
 —————————-
 ※ 每個硬碟分割區佔16Byte,所以最多定義四個開機磁區。
 ※ 其中一個磁區會設為「啟動磁區(active/boot)」。
#############################
↓↓↓
#############################
 Partition Boot Record (PBR-啟動磁區)
 —————————-
 ※ 可能會是「100MB 磁區」或「C 槽」。
 ※ 如果沒設定,開機可能會出現
    「Remove disk or other media Press any key to restart」。
#############################
↓↓↓
#############################
 bootmgr
 —————————-
 ※ 開機管理程式,類似 grub、rEFind。
 ※ 可能位於「100MB 磁區」或「C 槽」。
 ※ 在 XP 之前的 Windows,為 NTLDR 這支程式負責這段。
#############################
↓↓↓
#############################
 BCD
 —————————-
 ※ 文件,定義 winload.exe 所在磁區的 GUID。
 ※ 可能位於「100MB 磁區」或「C 槽」。
#############################
↓↓↓
#############################
 winload.exe
 —————————-
 ※ 位於 C:\Windows\System32。
#############################
↓↓↓
#############################
 ntoskrnl.exe
 —————————-
 ※ 位於 C:\Windows\System32。
#############################
=============================
【UEFI】
#############################
 ESP 磁區
 —————————-
 ※ 定義 bootmgfw.efi 位置。
#############################
↓↓↓
#############################
 bootmgfw.efi
 —————————-
 ※ 程式,位於ESP磁區的「EFI/Microsoft/Boot」
 ※ 或 rEFind 的 efi 檔等。
#############################
↓↓↓
#############################
 BCD
 —————————-
 ※ 文件,定義 winload.efi 所在磁區。
#############################
↓↓↓
#############################
 winload.efi
 —————————-
 ※ 程式,位於 C:\Windows\System32。
#############################
【參考資料】
- windows啟動過程分析 – 每日頭條
 - 主開機紀錄 – 維基百科,自由的百科全書
 - 傲笑紅塵路: 修復Windows 無法開機的工具
 
	







Leave a Reply