Windows Boot Process
BIOS
- firmware runs a power on self-test (POST)
- verify that the system components are present and functioning correctly
- then identifies a boot device (partition) and passes control to the operating system’s boot loader process
- firmware scans the disk identified as boot device
- reads master boot record (MBR) in the first sector of disk
- MBR locates the boot partition
- partition that has the OS
- MBR passes control to the boot sector
- boot sector loads boot manager
- in Windows its
bootmgr.exe
- 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
- boot manager loads Windows boot loader
winload.exe
- stored in system root folder on boot partition
Winload loads the kernel ntoskrnl.exe, hardware abstraction layer hal.dll, and boot device drivers
- control is passed to kernel which initializes and loads required processes
- when complete,
Winload waits for user authentication (log in)
UEFI
- firmware runs POST
- reads GPT on the boot device
- 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
bootmgfw.efi reads BCD to identify whether to show boot menu and to find location of winload.efi
- Windows boot loader loads kernel, which starts required processes and then waits for user auth
D431 Boot Process
- BIOS conducts a power-on self-test (POST)
- checks to see if devices are present and working
- computer reads the master boot record (MBR) and partition table
- MBR locates the boot partition
- MBR passes control to the boot sector on the boot partition
- 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
- 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
- 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
- NTLDR stats minimal file system drivers
- NTLDR reads
boot.ini and displays the boot loader menu
- multiple OS will be displayed here if available
- 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
- NTLDR loads
hal.dll (hardware abstraction layer)
- NTLDR loads the system hive (i.e. the Registry) and reads settings
- kernel initialization begins
- services load phase begins
- Win32 subsystem start phase begins
- user logs on