We all know that Linux system startup is very fast, so what content does the Linux system load during the boot process? The following small series will introduce you to the detailed process of starting the Linux system, so that you have a detailed understanding.
press the power button until after the welcome page out, linux altogether to do can be divided into five steps to complete.
1. BIOS power-on self-test:
Power-on self-test, detecting hardware devices. Then search for the bootable device in the active state in the order above cmos. It can be an optical drive, a floppy disk, a USB, or the like.
2. Load the master boot loader (MBR):
The master bootloader is a 512-byte image. There is a little machine code and a small partition.
The main bootloader's task is to find and load the secondary bootloader on the hard disk partition. The active partition is found through the partition table, and the secondary boot loader in the active partition is read into memory and run.
3, load the secondary boot record program (GRUB)
The secondary boot loader is only loaded with the Linux kernel.
After the last phase, the bootloader will run in memory. The GRUB graphical interface will appear, allowing the user to choose which kernel to load.
4, linux kernel image:
After the user selects the kernel to be loaded, the secondary boot loader (GRUB) will be based on the information set in the /boot/grub.conf configuration file. Read the Linux kernel image from the partition where /boot/is located, then load the kernel image into memory and give control to the Linux kernel.
After the Linux kernel gains control, it starts its own business
1), detects hardware
2), decompresses itself and installs the necessary drivers
3), initialize the virtual device related to the file system, LVM or RAID
4), load the root file system, hang under the root directory
5), after completion, linux in the process space Load the init program inside, the following is the init work
5, init process
init is the initiator and controller of all processes, all processes are derived from this.
After the init process gains control, it executes the /etc/rc.d/rc.sysinit script, sets environment variables, networks, starts swap, checks and mounts the file system, and executes other programs based on the code inside. Initialize the work.
At this point, the Linux boot is complete.
Let's summarize it a bit:
The first is the BIOS power-on self-test, after loading the main boot loader, the secondary boot loader, and finally the linux kernel image, and then hand over control to init Process, complete the initialization work.
What is the swap partition?
Similar to the virtual memory in the windows system, when the physical memory is not enough, use the memory in the swap.
The above is the introduction of the detailed process of booting up the Linux system. Usually you may not pay serious attention when booting. In fact, the Linux system does a lot of things when booting.
gmtime and localtime are two different functions. Many people are confused when usi
In Linux, OpenVPN is a good open source VPN, so it is widely used. However, many us
To master the partition of Linux hard disk, we must know the concept of MBR, extended partition and
In Linux systems, multiple network cards are usually bundled into one logical netwo
What if CentOS 6.4 can't read ntfs disk?
Linux installation third-party library error Python version 2.7 how to do?
What should I do if there is garbled code on the Firefox browser page under Linux?
How to install virtualization tools in Linux llibvirt
CentOS batch compression image size operation example
Linux how to install and configure MariaDB database
How to create symbolic links for Linux systems
How to use the tcpdump command in the Linux system
How does Linux modify the PATH path of sudo?
Modifying the skills from the library to the classic resource manager
Vista upgrade win7 system has unlimited restart solution
Microsoft has acquired home automation company
WinXP memory optimization tutorial (can provide system speed)
NetWei Master boosts Windows7 localization and turns around
Alloy equipment 5 phantom pain 28th sniper how to play
Win7 system shutdown prompts "Drive does not have a disk" What should I do?
Windows 7 frequent suspended animation is a special effect to blame