Fundamentals 6 min read

What Happens When You Power On a Computer? A Deep Dive into the Boot Process

This article explains the step‑by‑step boot sequence of a computer—from the BIOS reading the MBR on the selected storage device, through the boot loader loading the kernel, to the kernel initializing hardware, spawning the init process, and finally presenting the login screen.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
What Happens When You Power On a Computer? A Deep Dive into the Boot Process

Computer booting is a mysterious yet fragile process; pressing the power button triggers a series of steps that culminate in a login screen, but failures can leave you with a command line or error messages. Understanding this process helps troubleshoot boot problems.

Initial Stage

When the power is turned on, the computer reads the BIOS (Basic Input/Output System) stored on the motherboard, which knows about directly connected hardware such as hard drives, network interfaces, keyboard, serial and parallel ports. Modern BIOS allows selecting a boot device from floppy, CD/DVD, or hard disk.

The BIOS reads the first 512 bytes of the chosen storage device—known as the Master Boot Record (MBR). The MBR tells the computer which partition’s boot loader to load. Common boot loaders include GRUB and LILO.

The boot loader then loads the kernel. The kernel is the core program that manages hardware resources and serves as the interface between software and hardware. Windows and Linux each have their own kernels; the term “operating system” can refer narrowly to the kernel or broadly to the kernel plus surrounding applications.

Multiple boot loaders can be installed on different partitions, enabling multi‑OS setups.

Summary: BIOS → MBR → boot loader → kernel

Kernel

If a Linux kernel is loaded, it first reserves memory for itself, then uses drivers to detect the hardware, allowing the OS to know which devices are available. Afterwards, the kernel starts the init process, which is the first (PID 1) user‑space process in Linux.

Summary: kernel → init process

Init Process

Depending on boot loader options, Linux may enter single‑user mode, where initial scripts have not yet run, allowing error detection and repair. Then init executes a series of startup scripts (shell scripts) that set the computer name, timezone, check filesystems, mount disks, clear temporary files, configure networking, and more.

When these scripts finish, the system is fully prepared but no user is logged in yet. init then presents a login prompt, either text‑based or graphical.

After entering a username (e.g., “vamei”) and password, the user is logged in. The user belongs to one or more groups (e.g., “stupid” or “vamei”), which affect permissions.

Overall Summary

BIOS → MBR → boot loader → kernel → init process → login

Users and groups.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

KernelLinuxOperating SystemBIOSBoot Processinit
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.