Master Boot Record (MBR)
16-bit real mode
Reads and loads the volume boot record (VBR)
Per storage device
Boot sector (also called volume boot record)
16-bit real mode
Understands the file system on the partition and locates Bootmgr by name, loading it into memory
Per active (bootable) partition
Bootmgr
16-bit real mode and 32-bit without paging
Reads the Boot Configuration Database (BCD), presents boot menu, and allows execution of preboot programs such as the Memory Test application (Memtest.exe). If a 64-bit installation is booted, switches to 64-bit long mode before loading Winload.
Per system
Winload.exe
32-bit protected mode with paging, 64-bit protected mode if booting a Win64 installation
Loads Ntoskrnl.exe and its dependencies (Bootvid.dll on 32-bit systems, Hal.dll, Kdcom.dll, Ci.dll, Clfs.sys, Pshed.dll) and boot-start device drivers.
Per Windows installation
Winresume.exe
32-bit protected mode, 64-bit protected mode if resuming a Win64 installation
If resuming after a hibernation state, resumes from the hibernation file (Hiberfil.sys) instead of typical Windows loading.
Per Windows installation
Memtest.exe
32-bit protected mode
If selected from the Boot Manager, starts up and provides a graphical interface for scanning memory and detecting damaged RAM.
Per system
Ntoskrnl.exe
Protected mode with paging
Initializes executive subsystems and boot and system-start device drivers, prepares the system for running native applications, and runs Smss.exe.
Per Windows installation
Hal.dll
Protected mode with paging
Kernel-mode DLL that interfaces Ntoskrnl and drivers to the hardware. It also acts as a driver for the motherboard itself, supporting soldered components that are not otherwise managed by another driver.
Per Windows installation
Smss.exe
Native application
Initial instance starts a copy of itself to initialize each session. The session 0 instance loads the Windows subsystem driver (Win32k.sys) and starts the Windows subsystem process (Csrss.exe) and Windows initialization process (Wininit.exe). All other per-session instances start a Csrss and Winlogon process.
Per Windows installation
Wininit.exe
Windows application
Starts the service control manager (SCM), the Local Security Authority process (LSASS), and the local session manager (LSM). Initializes the rest of the registry and performs user-mode initialization tasks.
Per Windows installation
Winlogon.exe
Windows application
Coordinates logon and user security, launches LogonUI.
Per Windows installation
Logonui.exe
Windows application
Presents interactive logon dialog box.
Per Windows installation
Services.exe
Windows application
Loads and initializes auto-start device drivers and Windows services.
Per Windows installation
Physical disks are addressed in units known as
The MBRs written by Microsoft partitioning tools, such as the one integrated into Windows Setup and the Disk Management MMC snap-in, go through a similar process of reading and transferring control. First, an MBR’s code scans the primary partition table until it locates a partition containing a flag (Active) that signals the partition is bootable. When the MBR finds at least one such flag, it reads the first sector from the flagged partition into memory and transfers control to code within the partition. This type of partition is called a
Operating systems generally write boot sectors to disk without a user’s involvement. For example, when Windows Setup writes the MBR to a hard disk, it also writes the file system boot code (part of the boot sector) to a 100-MB bootable partition of the disk, marked as hidden to prevent accidental modification after the operating system has loaded. This is the system volume described earlier.