The PC starts the Linux system from the hard disk in two phases:
1. The BIOS performs a self-test on the hardware and finds the bootstrap in the MBR. [This step has the BIOS program that is solidified in the motherboard.]
2. After the control is given to the bootstrap, the length of the MBR in the hard disk is fixed to 512 bytes. The MBR itself is divided into two parts: the first 446 bytes is the bootstrap program, and the rest is the partition table. The purpose of the Bootstrap program is to find the boot parameters, get the kernel image on the disk, load it into memory, and pass in the boot parameters, and finally pass the control of the CPU to the kernel.
Two common BootLoaders: LILO, GRUB
Two files used in startup: vmlinux and initrd
Vmlinux
Wikipedia's explanation
>
On Linux systems, vmlinux is a statically linked executable file that contains the Linux kernel in one of the object file formats supported by Linux, which includes ELF, COFF and a.out. The vmlinux file might be required for kernel debugging , symbol table generation or other operations, but must be made bootable before being used as an operating system kernel by adding a multiboot header, bootsector and setup routines.
Vmlinux is a compiled executable file in the format Linux supports, such as: ELF, COFF, a.out, usually used for kernel debugging, symbol table generation. If you want to put it in the kernel as an executable file, you need to add the relevant part of the boot to be a bootable file.
Initrd:
Like other Unix systems, the Linux operating system first boots the kernel into memory. The kernel resides throughout the entire lifecycle of the operating system and applications, where the application (software) runs within "userspace" and is under kernel control.
In order to minimize the load memory, some core Linux programs are converted into modules and can be dynamically loaded into the system.
The files in the initrd system can be accessed by the kernel during the boot process. The contents of the file are mounted as a loop file. In the early days, the initrd was placed in a small floppy disk. The initrd is usually compressed into a gzip type, and the bootloader (LILO, GRUB) tells the location of the core initrd at boot time.
The difference between Vmlinux and image
Vmlinux is a file in elf format, image is a file that vmlinux only retains the data segment and text segment after objcopy operation, usually will be image Stored after compression, such as zimage.Uimage is based on zimage plus the head of 0x40 that uboot can provide, and used with uboot.
This article describes the solution when encountering is not in the sudoers file during Linux use. W
Many media and experts believe that Linux believes that Linux is more secure than Windows. However,
Preparation before erection: To set up a DNS server, you must install a software program that provi
In order to ensure the normal operation of the Linux system and accurately solve various system prob
Linux device driver third edition use problem
Squid, nginx, lighttpd reverse proxy difference
Replace VMware ESX Server Console NIC and Recovery Solution
Example of initialization file for rom under ISE
Java can not handle graphics solutions under Linux
How to clear the old Linux kernel
Linux DDOS attack on Windows system
WindowsXP classic failure network failure articles
6 emergency handling tips in the Linux operating system
Windows8 installation full map tour and Win8 installation tutorial! (2)
Win7 practical tips to delete the search history of the search bar
Let Group Policy Protect Windows XP Security
Google search new challenge: WP users
Upgrade Windows 7 from 7100RC to 7600 official version
Setting up the agent is just a few steps Win8.1 VPN Concise Tutorial
The hidden icon in the lower right corner of the Win7 system is missing. How to do
How does Win8 solve the problem of black screen after patching
Solve the storm video and video buffer can not buffer tutorial