2. Linux Kernel loading process

Source: Internet
Author: User
II. Process 1 of linux Kernel loading. concepts encountered during linux installation the kernel must be a module vmlinz (about 5 MB) that does not know the hard disk. it was originally necessary to write the same content as that in loader, to load unnecessary modules. Non-essential features of the kernel are compiled into modules in/lib/modules (143M... II. Process 1 of linux Kernel loading. concepts encountered during linux installation the kernel must be a module vmlinz (about 5 MB) that does not know the hard disk. it was originally necessary to write the same content as that in loader, to load unnecessary modules. Non-essential features of the kernel are compiled into modules in/lib/modules (143 M. The current measure is to load initial RAM Disk = initrd to the memory while loading the kernel by the loader. In general, initrd is named/boot/initrd (14 M). it acts as a virtual file system that mounts memory. the kernel loads drivers such as hard disks and mounts the root directory according to the virtual file system, finally, the function module is loaded. At this point, all the kernels are loaded into the memory and resident memory. The first process of kernel calling is sbin/init: Prepare the software execution environment, including the host name, network settings, file system format, runlevel, and so on. The content is the init configured by etc/inittab. the processing flow set by inittab is: 1. first obtain the runlevel, that is, the level of the execution level of the Mo-role (take the test machine as an example, as the number 5); 2. use/etc/rc. d/rc. sysinit system initialization 3. since runlevel is 5, only "l5: 5: wait:/etc/rc. d/rc 5 ", and the other rows are skipped 4. set the [ctrl] + [alt] + [del] combination key Function 5. set the pf and pr mechanisms for the power-on system; 6. start the six terminals (tty1 ~ Tty6) 7. finally, start the graphic interface with/etc/X11/perofdm-nodaemon! The second step uses/etc/rc. d/rc. sysinit performs system initialization: 1. obtain the network environment without the host type: Read the network configuration file/etc/sysconfig/network and obtain the network environment such as the host name and default gateway. 2. test and mount the memory device/proc and USB device/sys: in addition to the mounted memory device/proc? In addition to Y, it will also detect whether the system has a usb device. If yes, it will load the usb driver program on the primary Eni ,?? D. try to mount the usb file system. 3. decide whether to start SELinux: what SELinux we talked about in chapter 17th is at this time? Perform some checks ,?? D. check whether the standard SELinux type (auto relabel) needs to be rewritten for all files ). 4. Can the random number generator that starts the system's random number generator help the inferior system? To perform some cryptographic algorithm functions, you need to start the random number generator twice. 5. set the terminal (console) font: 6. set to display the welcome screen (text banner) during the renewal process. 7. set the system time (clock) without the time zone: Read/etc/sysconfig/clock to set the value 8. test the Plug and Play (PnP) parameters of the interface standby detection: based on the detection results of the core at startup (/proc/sys/kernel/modprobe? How can I perform standby detection on interfaces such as ide/scsi/network/sound effects and use the core modules to load? Test the parameters of the line PnP device. 9. you can load custom modules in/etc/sysconfig/modules /*. modules is added to a custom module, which is then loaded into the system 10. loading core settings: the system will read/etc/sysctl from the master region. the configuration value of the conf file makes the core function what we want. 11. set the host name without initializing the power management module (ACPI) 12. initialize the software disk array: it is mainly set through/etc/mdadm. conf. 13. initialize the LVM file system function 14. use fsck to check the disk file system: Yes? Row filesystem check15 .? Convert the row disk quota to quota (optional): 16. re-use the erasable mode? K. mount the system disk: 17. start the quota function: therefore, we do not need to customize the quotaon quota for 18. start the system virtual random number generator (pseudo-random): 19. clear temporary files during boot: 20. load the boot information to the/var/log/dmesg file. After the first boot, perform several simple settings terminal boot shortcut keys ctrl + alt + t set root password su-rootsudo passwd root allow root login gksu/usr/sbin/gdmsetup set source sudo gedit/etc /apt/sources. listsudo apt-get update (only the software package list is updated, and the software is not updated) ctrl + alt + f1 ~ 7 logon terminals ctrl + d = exit

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.