Linux system startup process brief
1, power-on self-test, the initialization of hardware.
2, enter the BIOS, look for boot media, the initial installation of Linux system is usually CD-ROM or USB drive boot, installed Linux system selected local HDD hard drive boot.
3. Find the 512-byte MBR boot loader in the first sector of the first partition of the first hard disk, and the Bootloader configuration file/boot/grub/grub.conf Find the system to boot and the kernel and kernel image files.
4. Unzip the kernel image into memory and run the hardware drive (disk, sound card, network card).
5, initialize the init, according to the configuration of/etc/inittab, the system first executes the script under/etc/rc.sysinit according to the configuration file/etc/init/rcs.conf, activates the swap partition, including the network settings, and then according to the configuration file/etc/init/ Rc.conf executes the script under/ETC/RC.D/RC3.D, Initializes a specific (time, language), and loads the service under that level. In addition, the system runs the script/etc/rc.d/rc.local (the user can customize the power-on script here), and when the service and process starts, the system starts to complete.
6, open/sbin/mingetty, set up 6 TTY, if run Level 5, turn on the graphical service.
7. Login user.
This article is from the "Linux" blog, so be sure to keep this source http://daixuan.blog.51cto.com/5426657/1715759
Linux system startup process