Linux Boot Process : Learn about the Linux boot process step by step. Understand BIOS/UEFI, bootloaders like GRUB, kernel initialization, init systems, and runlevels.
Introduction of Linux Boot Process
The Linux boot process is the sequence of events that occur from the moment a computer is powered on until the operating system is fully loaded and ready for use. Understanding this process is essential for system administrators, embedded engineers, and Linux users troubleshooting boot issues.
In this guide, we will explore the Linux boot sequence, covering each stage in detail, from BIOS/UEFI initialization to reaching the login prompt.
1. BIOS/UEFI – Hardware Initialization
The boot process begins with the BIOS (Basic Input/Output System) or UEFI (Unified Extensible Firmware Interface). This firmware checks the system hardware and locates a bootable disk.
Key Functions of BIOS/UEFI:
✅ Performs Power-On Self-Test (POST) to detect hardware issues.
✅ Initializes the CPU, RAM, and storage devices.
✅ Searches for a bootable disk (HDD, SSD, USB, Network).
✅ Loads the bootloader from the Master Boot Record (MBR) or EFI partition.
📌 Related: How to Check BIOS Version in Linux
2. Bootloader – Loading the Linux Kernel
The bootloader is responsible for loading the Linux kernel and passing necessary parameters.
Common Bootloaders in Linux:
- GRUB (GRand Unified Bootloader) – Most widely used.
- LILO (Linux Loader) – Legacy bootloader, less common.
- systemd-boot – Used in systemd-based distributions.
- U-Boot – Popular for embedded Linux (ARM-based systems).
Bootloader Responsibilities:
✅ Loads the Linux kernel into RAM.
✅ Passes kernel parameters (e.g., root filesystem location).
✅ Loads the initial RAM disk (initramfs/initrd).
🔹 GRUB Boot Configuration Example:
GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"
GRUB_CMDLINE_LINUX=\"root=/dev/sda1 ro\"📌 Related: How to Fix GRUB Boot Issues
3. Kernel Initialization
Once the bootloader executes, the Linux kernel takes control.
Kernel Responsibilities:
✅ Initializes memory management, CPU scheduling, and process handling.
✅ Detects and initializes hardware components.
✅ Mounts the root filesystem (/).
✅ Starts the init system (PID 1).
📌 Related: Linux Kernel vs Unix Kernel
4. Initramfs/Initrd – Temporary Root Filesystem
Before mounting the main root filesystem, Linux uses a temporary filesystem (initramfs/initrd) to:
✅ Load necessary kernel modules (e.g., RAID, LVM).
✅ Mount the actual root filesystem.
🔹 How to View Initramfs Contents:
lsinitrd /boot/initramfs-$(uname -r).img📌 Related: How to Rebuild Initramfs in Linux
5. Init System – Starting User Space Processes
The init system is the first user-space process executed by the Linux kernel (PID 1). It manages system services and startup scripts.
Popular Init Systems in Linux:
- Systemd (Modern Linux distributions)
- SysVinit (Older Linux distributions)
- Upstart (Legacy Ubuntu versions)
🔹 Systemd Process Tree Example:
systemctl list-units --type=service📌 Related: Systemd vs SysVinit
💛 Support Embedded Prep
If you find our tutorials helpful and want to support our mission of sharing high-quality embedded system knowledge, you can contribute by buying us a coffee. Every small contribution helps us keep creating valuable content for learners like you. ☕
Thank you for your support — it truly keeps Embedded Prep growing. 💻✨
6. Runlevels & System Targets
Runlevels (SysVinit) or system targets (systemd) define the state of a Linux system at boot.
Runlevels (SysVinit):
- 0 – Shutdown
- 1 – Single-user mode
- 3 – Multi-user, no GUI
- 5 – Multi-user with GUI
- 6 – Reboot
Systemd Targets:
- poweroff.target – Shutdown
- rescue.target – Single-user mode
- multi-user.target – CLI mode
- graphical.target – GUI mode
- reboot.target – Reboot
🔹 How to Change Runlevel in Systemd:
systemctl isolate multi-user.target📌 Related: Linux Runlevels Explained
7. User Login & Shell Execution
Once all system services are initialized, the Linux system presents:
✅ A text-based shell (Bash, Zsh).
✅ A graphical login manager (GDM, SDDM, LightDM).
🔹 How to Check Running Shell:
echo $SHELL📌 Related: Bash vs Zsh – Which Shell is Better?
8. Linux Boot Process in Embedded Systems (ARM)
For ARM-based Linux systems, the boot sequence differs slightly:
1️⃣ ROM Code Execution – Loads the primary bootloader (MLO/SPL).
2️⃣ Primary Bootloader (U-Boot SPL) – Initializes RAM.
3️⃣ Secondary Bootloader (U-Boot) – Loads the Linux kernel.
4️⃣ Kernel Decompression & Execution
5️⃣ Device Tree Parsing
6️⃣ Init System Execution
📌 Related: How U-Boot Works in Linux
Frequently Asked Questions (FAQs)
What is the Linux boot process in simple terms?
It’s the sequence of events from powering on a system to reaching the user login prompt, involving BIOS, bootloader, kernel, init system, and services.
Why does Linux use Initramfs?
Initramfs provides a minimal root filesystem for loading essential kernel modules before mounting the main filesystem.
How to reduce Linux boot time?
✅ Disable unnecessary kernel modules.
✅ Optimize systemd services using systemctl disable .
✅ Use lightweight bootloaders like systemd-boot.
📌 Related: How to Speed Up Linux Boot Time
Conclusion
The Linux boot process is a crucial aspect of system administration and embedded Linux development. Understanding how Linux boots—from BIOS/UEFI to user space—helps in troubleshooting, optimizing, and customizing the system.
Did you find this guide helpful? Share your thoughts in the comments below!
Thank you for exploring Linux Boot Process! Stay ahead in embedded systems with expert insights, hands-on projects, and in-depth guides. FollowEmbedded Prepfor the latest trends, best practices, and step-by-step tutorials to enhance your expertise. Keep learning, keep innovating!
You can also Visit other tutorials of Embedded Prep
- Top 30+ I2C Interview Questions
- Bit Manipulation Interview Questions
- Structure and Union in c
- Little Endian vs. Big Endian: A Complete Guide
Mr. Raj Kumar is a highly experienced Technical Content Engineer with 7 years of dedicated expertise in the intricate field of embedded systems. At Embedded Prep, Raj is at the forefront of creating and curating high-quality technical content designed to educate and empower aspiring and seasoned professionals in the embedded domain.
Throughout his career, Raj has honed a unique skill set that bridges the gap between deep technical understanding and effective communication. His work encompasses a wide range of educational materials, including in-depth tutorials, practical guides, course modules, and insightful articles focused on embedded hardware and software solutions. He possesses a strong grasp of embedded architectures, microcontrollers, real-time operating systems (RTOS), firmware development, and various communication protocols relevant to the embedded industry.
Raj is adept at collaborating closely with subject matter experts, engineers, and instructional designers to ensure the accuracy, completeness, and pedagogical effectiveness of the content. His meticulous attention to detail and commitment to clarity are instrumental in transforming complex embedded concepts into easily digestible and engaging learning experiences. At Embedded Prep, he plays a crucial role in building a robust knowledge base that helps learners master the complexities of embedded technologies.











Getting it repayment, like a warm would should
So, how does Tencent’s AI benchmark work? At the start, an AI is the facts in fact a sample rivalry from a catalogue of to the territory 1,800 challenges, from erection materials visualisations and интернет apps to making interactive mini-games.
At the identical without surcease the AI generates the rules, ArtifactsBench gets to work. It automatically builds and runs the jus gentium ‘unspecialized law’ in a non-toxic and sandboxed environment.
To in excess of and primary of all how the germaneness behaves, it captures a series of screenshots upwards time. This allows it to worthless respecting things like animations, conditions changes after a button click, and other unmistakable consumer feedback.
Conclusively, it hands atop of all this evince – the autochthonous importune, the AI’s pandect, and the screenshots – to a Multimodal LLM (MLLM), to feigning as a judge.
This MLLM referee isn’t openly giving a inexplicit тезис and a substitute alternatively uses a wink, per-task checklist to iota the consequence across ten assorted metrics. Scoring includes functionality, bloke proceeding, and relentless aesthetic quality. This ensures the scoring is light-complexioned, accordant, and thorough.
The rich in dotty is, does this automated authority in effect contain well-mannered taste? The results proffer it does.
When the rankings from ArtifactsBench were compared to WebDev Arena, the gold-standard stout-hearted prescription where bona fide humans opinion on the in the most fit talent AI creations, they matched up with a 94.4% consistency. This is a heinousness disturbance from older automated benchmarks, which only just managed hither 69.4% consistency.
On cork of this, the framework’s judgments showed in over-abundance of 90% concord with superior kindly developers.
[url=https://www.artificialintelligence-news.com/]https://www.artificialintelligence-news.com/[/url]
Can I simply say what a comfort to discover someone that genuinely understands what they are talking about on the
net. Youu defnitely realize how to bring an issue too light and make it important.
A lot mre people have to check this out and understand this side of the story.
I was surprised that you aare nnot more popular
since you definitely possess the gift.