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:
- Load BIOS hardware information and self-test, get first bootable device based on settings
- Read and execute the boot loader(grub) of the MBR within the first boot device
- lang= >boot "en-US" loader,kernel will start detecting hardware and loading drivers
-
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
- After the hardware driver succeeds, kernelinit process, while initrun-level Information
-
after the kernel load is complete, start executing the first linux program, /sbin/init so this process pid 1 The task of
/sbin/init
- 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
- Init performs run-level for each service start (script way) file in/etc/rcx.d
- Init executes the/etc/rc.d/rc.local file, which is the system command you want to execute at startup
- 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