【筆記】Windows 開機過程

【BIOS】

#############################
MBR (Master Boot Record)
—————————-
※ 位於硬碟的第一個磁區。
※ 裡面包含「啟動代碼」及一個64Byte的「硬碟分割區表」。
#############################

↓↓↓

#############################
Disk Partition Table (DPT - Disk Partition Table)
—————————-
※ Each hard drive partition occupies 16 bytes,So up to four boot partitions can be defined。
※ One of the partitions is set as the 'active boot partition'(active/boot)」。
#############################

↓↓↓

#############################
Partition Boot Record (PBR - Boot Partition)
—————————-
※ It could be a '100MB partition' or 'C drive'。
※ If not set,Startup may display
Remove disk or other media Press any key to restart。
#############################

↓↓↓

#############################
bootmgr
—————————-
* Boot manager,Similar to grub、rEFind。
* May be located in '100MB partition' or 'C drive'。
* In versions of Windows before XP,This part is handled by the program NTLDR。
#############################

↓↓↓

#############################
BCD
—————————-
※ 文件,定義 winload.exe 所在磁區的 GUID。
* May be located in '100MB partition' or 'C drive'。
#############################

↓↓↓

#############################
winload.exe
—————————-
※ 位於 C:\Windows\System32
#############################

↓↓↓

#############################
ntoskrnl.exe
—————————-
※ 位於 C:\Windows\System32
#############################

=============================

【UEFI】

#############################
ESP partition
—————————-
※ 定義 bootmgfw.efi 位置。
#############################

↓↓↓

#############################
bootmgfw.efi
—————————-
※ 程式,位於ESP磁區的「EFI/Microsoft/Boot」
* Or rEFind's efi file, etc.。
#############################

↓↓↓

#############################
BCD
—————————-
※ 文件,定義 winload.efi 所在磁區。
#############################

↓↓↓

#############################
winload.efi
—————————-
※ 程式,位於 C:\Windows\System32
#############################

【參考資料】

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.