Windows Boot Process


BIOS

  1. firmware runs a power on self-test (POST)
    • verify that the system components are present and functioning correctly
  2. then identifies a boot device (partition) and passes control to the operating system’s boot loader process
  3. firmware scans the disk identified as boot device
  4. reads master boot record (MBR) in the first sector of disk
  5. MBR locates the boot partition
    • partition that has the OS
    • MBR passes control to the boot sector
  6. boot sector loads boot manager
    • in Windows its bootmgr.exe
  7. boot manager reads info from boot configuration data (BCD) file
    • identifies OS installed on the computer
    • Bootmgr and BCD are normally installed to hidden System Reserved partition
  8. boot manager loads Windows boot loader winload.exe
    • stored in system root folder on boot partition
  9. Winload loads the kernel ntoskrnl.exe, hardware abstraction layer hal.dll, and boot device drivers
  10. control is passed to kernel which initializes and loads required processes
  11. when complete, Winload waits for user authentication (log in)

UEFI

  1. firmware runs POST
  2. reads GPT on the boot device
  3. GPT identifies EFI System Partition
    • contains the EFI boot manager and BCD
    • each Windows install has a subfolder under \EFI\Miscrosoft\ that contains a BCD and bootmgfw.efi
  4. bootmgfw.efi reads BCD to identify whether to show boot menu and to find location of winload.efi
  5. Windows boot loader loads kernel, which starts required processes and then waits for user auth

D431 Boot Process

  1. BIOS conducts a power-on self-test (POST)
    • checks to see if devices are present and working
  2. computer reads the master boot record (MBR) and partition table
  3. MBR locates the boot partition
    • has the OS on it
  4. MBR passes control to the boot sector on the boot partition
  5. boot sector loads NTLDR
    • is the NT loader
    • is the first part of the Windows OS
    • responsible for preparing and loading the rest of the OS
  6. Contents of hyberfil.sys are loaded into memory and the system resumes at the previous state
    • When Windows is put into hibernation state instead of shut down
  7. NTLDR switches from real mode to 32-bit memory or 64-bit memory
    • real mode is the default for x86 systems
    • provides no support for memory protection, multitasking, or code privilege levels
  8. NTLDR stats minimal file system drivers
    • FAT, FAT32, NTFS
  9. NTLDR reads boot.ini and displays the boot loader menu
    • multiple OS will be displayed here if available
  10. NTLDR loads NTOSKRNL and passes hardware information
    • this is the kernel for Windows OS
    • this is the end of the boot phase
    • beginning of load phase
  11. NTLDR loads hal.dll (hardware abstraction layer)
  12. NTLDR loads the system hive (i.e. the Registry) and reads settings
  13. kernel initialization begins
    • screen turns blue
  14. services load phase begins
  15. Win32 subsystem start phase begins
  16. user logs on