Linux system startup Process learning notes

Source: Internet
Author: User

1.POST---BIOS (boot sequence[check boot order])--MBR (MBR just storage space, bootloader loaded onto MBR [find partition on hard disk with system installed and load system kernel],446byte)-- > Kernel (bootloader loads the kernel into memory, the kernel gains system control, detects hardware, loads drivers)--initrd (virtual root, also loaded by bootloader, Kernel used)--init (/ Sbin/init User space lead program,/etc/inittab)


2.kernel Loading: File system, process management, memory management, network management, security features, drivers


3. The file system that holds the root/is called the Rootfs root file system


4. The root file system must be loaded after the kernel initialization is completed before the root is found to load/sbin/init


5. Kernel Design style:

Single core: All functions are made into kernel, Linux (LWP)

Cores include core and peripheral modules (/lib/modules/kernel version number)

Core: KO (Kernel object) can dynamically load a variety of peripheral kernel modules, which need to be loaded which, to ensure that the kernel is small enough

Micro-core: Support Multithreading Windows,solaris


6.chroot:chroot/path/to/temproot [COMMAND ...] : Root Switch

Chroot/test/virroot/bin/bash


7.ldd/path/to/binary_file: Shows the shared libraries on which the binaries depend


8. Different services are started:

Operating level: 0-6

0:halt shut down the machine

1:single user mode directly into the administrator identity

2:multi user mode, no NFS approaches normal mode, but NFS is not enabled

3:multi user mode, text mode command mode

4:reseved not defined, retention level

5:multi user mode, graphic mode graphical interface

5:reboot restart


9. Detailed start-up process

Bootloader (is a program, in MBR)

Lili:linux Loader is obsolete and cannot boot large disks, but can be used in embedded systems

Grub:grand unitfied Bootloader

STAGE1:MBR (Phase I guided Phase II)

Stage1_5

Stage2:/boot/grub/


10./etc/grub.conf


Default=0 # is the default start of the title, starting from 0

Timeout=5 # waits for the user to select the time-out market, per second

Splashimage= (hd0,0)/grub/splash.xpm.gz # Grub Background image

Hiddenmenu # Hidden Menu

Password--md5 $1$uavmi$tswjrllhjksucedssmwdf/

Title Godben Linux # inside and title, or operating system name, string, can be freely modified

Root (hd0,0) # Devices within and files: for grub, all types of hard drives are HD, in the format (hd#,n) hd#, #表示第几个磁盘, and the last N indicates the partition of the corresponding disk

kernel/vmlinuz-2.6.32-131.0.15.el6.i686 ro root=uuid=fe0c9033-3c0f-4dad-8903-8060ecdbe789 Rd_NO_LUKS rd_NO_LVM rd_ NO_MD rd_no_dm LANG=ZH_CN. UTF-8 keyboardtype=pc keytable=us Crashkernel=auto rhgb quiet # Inside and file path, and parameters passed to the kernel

INITRD/INITRAMFS-2.6.32-131.0.15.EL6.I686.IMG # RAMDisk file path, virtual root


This article is from the "Godben" blog, make sure to keep this source http://godben.blog.51cto.com/8919725/1694033

Linux system startup Process learning notes

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.