Linux Start-up process

Source: Internet
Author: User

I. Hardware boot boot

1. Power on

2. BIOS(Initialize hardware to find boot media)

3. MBR Total 512bytes

MBR contains:

1.446bytes:bootloader (GRUB)

2.64bytes:partition (partition Table)

3.2bytes:magic Number (checksum)


Two. Grub Boot boot

1. cat/boot/grub/grub.conf (view configuration file)

2. ls-l etc/grub/conf(usually view linked files)

3. Kernel (hd0,0) boot options

4. Stage1 in MBR stage2 stage1_5 link in disk

5. Stage2 (Kernel)

Stage1→stage1_5→stage2→grub.conf


Three. Kernel boot

1. /boot/kernel and kernel parameter

2. initrd


Four. Sys V init initialization phase

1. /sbin/init (/etc/inittab

2. /etc/rc.sysinit

3. /ETC/RC.D/RC (x). d/)

4. /sbin/mingetty (/etc/login)


Note:

chkconfig–list View System Load service

/etc/rc.d/rc.sysinit Initialize

/ETC/RC.D/RCX.D Run Level

/erc/rc.d/rc.loacl can be put into the start command tty1~6 Total 6 Plus graphical interface total of 7 terminals


Attach a picture for easy understanding:



This article from "Samoyed Sadness" blog, reproduced please contact the author!

Linux Start-up 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.