Unveiling the Mysteries of Computer Boot: From BIOS to Login
This article demystifies the computer boot process, explaining how power‑on triggers BIOS, which loads the MBR, boot loader, kernel, init scripts, and finally presents the login screen, helping readers understand and troubleshoot each fragile stage.
Computer booting is a mysterious yet fragile process that starts when you press the power button and ends at the login screen. Understanding each stage helps troubleshoot boot issues.
Initial Stage
When the power is turned on, the computer reads the BIOS (Basic Input/Output System) stored on the motherboard. BIOS knows the directly attached hardware (hard disk, network, keyboard, etc.) and can boot from floppy, CD/DVD, or hard drive.
The BIOS reads the first 512 bytes of the selected device, the Master Boot Record (MBR). The MBR points to a partition that contains the boot loader (e.g., GRUB, LILO), which holds information about the operating system and the location of its kernel.
The boot loader then loads the kernel. The kernel is the core program that manages hardware resources and provides the interface between software and hardware. Windows and Linux each have their own kernels; the kernel alone can be considered the narrow definition of an operating system.
Kernel
After the kernel is loaded (e.g., a Linux kernel), it reserves memory for itself, detects hardware via drivers, and then starts the init process, the first user‑space process (PID 1) in Linux.
Init Process
The init process runs a series of startup scripts that set the computer name, timezone, detect and mount file systems, clear temporary files, configure the network, and more. When these scripts finish, the system is ready but no one is logged in yet.
Init then presents a login prompt or graphical login screen. After the user enters a username and password, the session starts. The user belongs to one or more groups (e.g., “vamei” or “stupid”), which determines additional permissions.
Summary
Boot sequence: BIOS → MBR → boot loader → kernel → init process → login → user & groups.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
