Yesterday, a written test on the Linux system started the process, did not answer, and now sorted out (in fact, not complicated).
After pressing the power button until the Welcome page comes out, the total amount of Linux you can do is divided into five steps to complete.
1, the BIOS power-on self-test:
Power-on self-test, testing hardware equipment. Then follow the CMOS sequence to search for a bootable device in the active state. It can be CD-ROM, floppy disk, USB, etc.
2. Load the master boot loader (MBR):
The Master bootstrapper is a 512-byte image. Contains a bit of machine code and a small partition.
The task of the master bootstrapper is to find and load the secondary boot program on the hard disk partition. Finds the active partition through a partitioned table and reads the secondary boot loader that is in the active partition into memory to run .
3. Loading sub-boot Record program (GRUB)
The secondary boot loader loads the Linux kernel as long as it is loaded.
The boot loader runs in memory after the end of the previous phase. The Grub graphical interface will appear, allowing the user to choose what kernel to load.
4. Linux kernel Image:
After the user chooses which kernel to load, the secondary boot loader (GRUB) reads the Linux kernel image from the partition on which the/boot/resides, and then loads the kernel image into memory based on the information set in the/boot/grub.conf configuration file and give control over to the Linux kernel.
The Linux kernel gets control and starts doing its job.
Detecting hardware
Unzip yourself and install the necessary drivers
Initializing a file system-related virtual device, LVM or raid
Mount the root file system, hang underneath the root directory
After completion, Linux loads the INIT program in the process space, and the next turn is the init work
Init process
Init is the initiator and controller of all processes, and all processes are derived from this.
After the init process gains control, it executes the/etc/rc.d/rc.sysinit script, setting the environment variables, the network, starting swap, checking and mounting the file system, and performing other initialization tasks based on the code inside.
At this point, Linux boot is complete.
Let's summarize a little bit:
The first is the BIOS power-on self-test, then load the main boot loader, the secondary boot loader, and finally the Linux kernel image, finished the control to the INIT process, to complete the initialization of the work.
What is a swap partition?
Similar to virtual memory in Windows systems, use memory in swap when physical memory is not enough.
This article from "Blue Home" blog, declined reprint!
Linux Start-up process