- Linux Init Process:
BIOS: The Basic Input/Output System is the lowest level interface between the computer and peripherals.
The BIOS perform integrity checks on memory and seeks instructions on the Master
The MBR points to the boot loader (GRUB or LILO: Linux boot loader).
Boot loader (GRUB or LILO) will then ask for the OS label which will identify which kernel to run and where it
The first thing the kernel does is to execute init program. Init is the root/parent of all processes executing on Linux.
The first processes that init starts is a script /etc/
Based on the
http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html
- 6 Stages of Linux Boot Process (Startup Sequence)
1-BIOS
BIOS stands for Basic Input/Output System
Performs
Searches, loads, and executes the boot loader program.
It looks for
Once the boot loader program
So, in simple terms BIOS loads and executes the MBR boot loader.
2. MBR
MBR stands for Master Boot Record.
MBR is less than 512 bytes in size. This has three components 1) primary boot loader info in 1st 446 bytes 2) partition table info in next 64 bytes 3)
It contains information about GRUB (or LILO in old systems).
So, in simple terms MBR loads and executes the GRUB boot loader.
3. GRUB
GRUB stands for Grand Unified Bootloader.
If you have multiple kernel images installed on your system, you can choose which one to
GRUB displays a splash screen, waits for few seconds, if you
GRUB has the knowledge of the filesystem (the older Linux loader LILO didn’t understand filesystem).
So, in simple terms GRUB just loads and executes Kernel and
4. Kernel
Mounts the root
Kernel executes the /
Since init was the 1st program to
5. Init
Looks at the /etc/
Following are the
0
1
2
3
4
5
6
Init identifies the default
Execute ‘
If you want to get into trouble, you can set the default run level to 0 or 6. Since you know what 0 and 6 means, probably you might not do that.
6.
When the Linux system is booting up, you might see various services getting started. For example, it might say “starting
Depending on your default init level setting, the system will execute the programs from one of the following directories.
Run level 0
Run level 1
Run level 2
Run level 3
Run level 4
Run level 5
Run level 6
Please note that there are also symbolic links available for these directories under /etc directly. So, /etc/rc0
Programs starts with S
Programs starts with K
There are numbers right next to S and K in the program names. Those are the sequence number in which the programs should
For example, S12syslog is to start the
http://www.thegeekstuff.com/2011/02/linux-boot-process/
No comments:
Post a Comment