Linux boot process

Source: Internet
Author: User

In order to find a job I also spell, only will Linux common operation how to do, good want to see the kernel source, or first understand how the Linux work it

Look at the bird's private dishes, made some notes:

System start-up process:

  1. Load BIOS hardware information and self-test, get first bootable device based on settings
  2. Read and execute the boot loader(grub) of the MBR within the first boot device
  3. lang= >boot "en-US" loader,kernel will start detecting hardware and loading drivers
    1. start from loading the kernel:

      linux Unzip the kernel into memory, Using kernel functions to start detecting hardware, the kernel begins to take over bios work

      kernel file is /boot/vmlinuz

  4. After the hardware driver succeeds, kernelinit process, while initrun-level Information
    1. after the kernel load is complete, start executing the first linux program, /sbin/init so this process pid  1 The task of

      /sbin/init

  5. Prepare the operating environment for the software execution,/etc/init/rc-sysinit.conf specified the default level, I am here 2, so the following start is /etc/rc2.d the script in
  6. Init performs run-level for each service start (script way) file in/etc/rcx.d
  7. Init executes the/etc/rc.d/rc.local file, which is the system command you want to execute at startup
    1. Init executes the terminal emulator mingetty to start the login process, waiting for the user to log in

Different level start, the execution is different/etc/rcx.d in the file, s beginning of the Representative is the start, the K beginning of the representative is closed, k,s after the number represents the boot sequence, the greater the number of the execution of the more

When switching different run level, the corresponding process is started and closed by comparing the S K file in the folder of the next two level.

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.