โ๏ธ Windows Boot Process
Booting is the process of loading the operating system into the system memory (RAM) after the system is powered on. Understanding it helps in diagnosing boot failures or optimizing startup.
๐งฉ 1. BIOS/UEFI Initialization
๐ Triggered When: You power on the computer.
๐ง What Happens: The BIOS (Basic Input/Output System) or modern UEFI firmware takes control before Windows loads.
๐ Main Tasks:
POST (Power-On Self-Test) runs โ
โ Checks CPU, RAM, keyboard, etc.
โ Confirms bootable disk is available.
โ Reads system configuration from CMOS ๐งพ
๐ฝ 2. MBR/GPT Execution
๐ง BIOS โ MBR (Master Boot Record)
- ๐Located in the first sector (sector 0) of the boot disk.
๐ MBR Tasks:
Identifies the active partition ๐งฉ
Loads the boot sector of that partition
Transfers control to Boot Manager
๐ Note: On UEFI-based systems, MBR is replaced with GPT, and Bootmgr.efi is used from the EFI System Partition.
๐ช 3. Bootmgr.exe Loads
๐ค Bootmgr = Windows Boot Manager
Located in:
C:\bootmgrSwitches CPU to protected mode ๐ก๏ธ (to use full memory)
๐ It reads the BCD (Boot Configuration Data):
Contains:
OS location ๐
Boot options (e.g., Safe Mode ๐งฏ, Dual Boot)
๐ค 4. Hibernate or Cold Start?
๐ If Resuming from Hibernation:
- ๐ง
Winresume.exeis used to restore the session.
- ๐ง
โ๏ธ If Cold Boot:
Winload.exeis loaded to begin OS startup.
๐ 5. Winload.exe โ Windows Loader
Loads core OS files:
๐ง
ntoskrnl.exeโ Windows Kernel๐งฌ
hal.dllโ Hardware Abstraction Layer๐๏ธโ๐จ๏ธ Essential drivers (like for disk, display, input)
๐ Kernel Mode is now active โ memory, process management begin here.
๐งโ๐ป 6. Kernel Initialization (Ntoskrnl.exe)
Initializes:
๐งฎ Scheduler (multitasking)
๐ง Virtual Memory Manager
๐พ I/O systems
Starts the SMSS.exe (Session Manager Subsystem):
Reads registry hives ๐งฌ
Creates page file ๐
Loads essential services like Winlogon
๐ 7. Winlogon & User Environment Setup
Loads the logon screen (GUI) ๐จ
Starts
lsass.exeโ Local Security Authority for authentication ๐งโ๐ปStarts
services.exefor background Windows Services โ๏ธLoads user profile and desktop ๐ผ
โ Final Result: Windows Desktop ๐ฅ๏ธ is ready for use!
๐ Summary Table:
| Phase | Component | Function |
| ๐ Power On | BIOS/UEFI | Hardware checks, POST, CMOS config |
| ๐ฝ Boot Sector | MBR/GPT | Load partition boot sector |
| ๐ง Boot Loader | Bootmgr.exe | Load BCD, choose boot option |
| โ๏ธ Loader | Winload.exe | Load kernel, drivers |
| ๐งฌ Kernel Init | Ntoskrnl.exe | Start system components |
| ๐จโ๐ป Session Manager | SMSS, Winlogon | Logon GUI, load services |
๐ Real-World Example:
If you see a "No Boot Device Found" error:
- ๐ Likely an issue in BIOS (no disk detected), MBR is corrupted, or Bootmgr is missing.
If Windows is stuck at a black screen after logo:
- ๐ง Problem during
winload.exeorntoskrnl.exephase (possibly a driver failure).