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