[Home] [Credit Search] [Category Browser] [Staff Roll Call] | The LINUX.COM Article Archive |
Originally Published: Tuesday, 4 September 2001 | Author: Siddharth Khosla |
Published to: learn_articles_firststep/General | Page: 2/2 - [Printable] |
The Linux Boot Process on the i386
Take another look at exactly what happens to your system during the boot process. Understanding the boot process is critical to understanding good useage and administration practices.
|
<< Page 2 of 2 | |
INITThe grandparent of all processes, init, can be said to be the root of the tree of processes which are run during Linux booting. Init runs a number of files during boot up. Some of the files it runs and their utility are given below :/etc/rc.d/rc.sysinitThis is the first file that init runs. It is responsible for system initialization processes like setting paths, swapping memory, checking file systems. It also starts up getty processes like those required to log in , ftp daemons, httpdaemons, mail daemons, NFS etc. The init configuration files are found in the /etc/rc.d directory and the files there include :
The init.d directory contains the scripts to run at various runlevels. The rc
Linux has in all six runlevels which are various kinds of modes the OS works in. Each runlevel has a different kind of mode which ends its booting sequence depending upon the preference of the user. The various runlevels are given below and would clear any doubt you have about them:
The etc/inittab file has a line towards the top that looks something like:
The etc/rc.d/rc also starts the default system processes and checks for the default rc directory for that particular runlevel. This can be ascertained by the numbers on the directories in etc/rc.d etc/rc.d/rc<n>.d where <n> is the runlevel.
There are a number of scripts that are started at different runlevels. You can have a list of these scripts if you check out the contents of the corresponding rc.d directory for that runlevel. the contents of this directory are not files but links to the required scripts in the /etc/rc.d/init.d directory. When these scripts are run the boot process is almost complete. As soon as the runlevel scripts are run the /etc/inittab starts the getty process which then shows the virtual console or the login prompt.
This file may be mirrored along with the site by obtaining permission from the
author. The electronic version of the paper is available free; you can print and
distribute it without making any changes and as long as this page is
included.
Corrections would greatly appreciated; please send them to
sid@sidkhosla.com/ob_stinatesid@hotmail.com
Siddharth Khosla
B. Tech (CSE)
Punjabi University
Patiala
India.
http://www.sidkhosla.com/papersഊ
Dedicated to:
My Family and Friends.ഊ
| |
<< Page 2 of 2 |