Linux boot process

Source: Internet
Author: User

1, boot BIOS self-Test
2.MBR boot
3.Grub boot Menu
4. Load kernel kernel

5. Initialize the system

LinuxThe startup process is detailed:
The first step——LoadingBIOS
when you turn on the computer power, the computer will first loadBiosinformation,BIOSinformation is so important that the computer must find it at the very beginning. This is becauseBIOSincluded in theCPUInformation, device boot sequence information, hard disk information, memory information, clock information ,PnPfeatures, and so on. After that, the computer has a spectrum and knows which hardware device to read.

Step Two——ReadMBR
as we all know, on the hard disk0The first sector of the track is calledMBR, namelyMaster Boot Record, which is the master boot record, the size of which is +Byte, although the place is not big, but it is stored in the pre-boot information, partition table information.

System foundBiosOf the specified hard disk.MBR, it will be copied to the0x7c00the physical memory in which the address resides. The content that is actually copied to the physical memory isBoot Loader, and specifically to your computer, that isLiloorGrubup.

Step three--boot Loader
Boot Loaderis a small program that runs before the operating system kernel runs. Through this small program, we can initialize the hardware device, set up a map of the memory space, so as to bring the system's hardware and software environment to a suitable state,
the system reads in-memoryGrubconfiguration information (typicallyMenu.lstorGrub.lst) and start a different operating system according to this configuration information.

Fourth Step——Load Kernel
according toGrubset the path of the kernel image, the system reads the memory image and does the decompression operation. At this point, the screen will generally output"Uncompressing Linux"the prompt. When the decompression core is complete, the screen output"OK, booting the kernel". The system places the extracted kernel in memory and callsStart_kernel ()function to start a series of initialization functions and initialize various devices to completeLinuxthe establishment of the core environment. At this point,LinuxThe kernel has been set up, based onLinuxprogram should work correctly.


Fifth Step-Initializing the system

This article is from the "11628205" blog, please be sure to keep this source http://11638205.blog.51cto.com/11628205/1881234

Linux boot process

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.