Linux boot Process overview

Source: Internet
Author: User

To put it simply, the system starts up in the following steps:


1. Post:

When the power button is pressed, the computer hardware actively reads the BIOS load hardware information and carries out the hardware self-test, then the system will read the first bootable device according to the boot order in the BIOS, thus handing over the control of the system, and most of the time handing over to the local hard drive.

2.MBR Boot

When booting a system from a native hard disk, the control of the system is passed to the partition containing the operating system boot file based on the settings of the MBR (Master boot record, master boot recording) in the first sector of the hard disk, or directly based on
The boot information in the MBR record invokes the boot menu (such as grub).

3.GRUB Menu

The software used by each boot loader may not be the same during startup. Currently, the major Linux distributions are grub, but early default uses LILO, including now many friends like to use Spfdisk. When the system
After the control is given to grub, the boot menu is displayed for the user to select and the Linux kernel file is loaded according to the selected (or default), and then the system control is transferred to the kernel.
4. Load the Linux kernel

The Linux kernel is a pre-compiled special binary file that is between various hardware resources and system programs and is responsible for resource allocation and scheduling. When the kernel is loaded into memory, the kernel detects all hardware information and loads the appropriate drivers
Program to enable this host to start running:

5.init Process Initialization
When the kernel detects and loads the driver succeeds, will invoke the '/sbin/int ' program to run in memory, (the running program is called the process) the INIT process is responsible for completing a series of system initialization process, and finally waiting for the user to log in.
(1) Init will obtain run-level information;
(2) Init executes the/etc/rc.d/rc.sysinit file to prepare the operating environment for software execution (e.g. network, time zone, etc.);
(3) Init execution of the various services of Run-level (script mode);
(4) Init executes the/etc/rc.d/rc.local file;
(5) Init execution Terminal Simulator Mingetty to start the login process, and finally wait for the user to log in.

Linux boot Process overview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.