Skip to main content
What happens after pressing the Power button in PCs?
Boot Sequences of the Operating System
- When we press the power button, If there is proper voltage, a short is created and send a pulse command to PSU (Power supply unit) to give power to all the devices and to send reset signals to the processor(CPU).
- CPU has the instruction pointer pointing to the reset vector within the system ROM and the CPU starts executing the small firmware or Jump instruction to load the BIOS.
- BIOS initialize the primary graphics through video BIOS code and also the other secondary devices. BIOS starts the POST (Power ON Self Test) process which will run the basic test for the devices and sets the device to it's default values. If there is any error during POST, beep codes and light codes helps us to troubleshoot the error device.
- According to the boot sequence setting in BIOS, it checks the first sector of the boot devices in sequence.
- In Hard disks, if BIOS finds the boot signature (2 bytes - 0x55 0xAA) in the first sector, MBR (Master Boot Record) will get loaded.
- MBR checks for PBR(Partition Boot Record) and passes the control to PBR to decode the file system on the partition and locate the Bootmgr(Boot manager) into memory.
- Bootmgr reads the Boot Configuration Data(BCD) and locates the file ntoskrnl.exe.
- Windows kernel gains control and initializes the CPU into protected mode. Loads the device drivers and shows the boot logo.
- User space will get loaded and starts session using csrss.exe and wininit.exe. Runs the pending windows update processes.
- Finally, Login screen gets displayed.
Popular posts from this blog
Comments