Книга: Fedora™ Unleashed, 2008 edition
Loading the Linux Kernel
Loading the Linux Kernel
In a general sense, the kernel manages the system resources. As the user, you do not often interact with the kernel, but instead just the applications that you are using. Unix refers to each application as a process, and the kernel assigns each process a number called a process ID (PID). First, the Linux kernel loads and runs a process named init
, which is also known as the "father of all processes" because it starts every subsequent process. The init
process looks for a list of instructions in a file named /etc/rc.d/rc.sysinit
. That script issues a number of commands that are run only once—each time the system is turned on.
NOTE
Details about the sequence of events that occur when the Linux kernel is loaded can be found in the file /usr/src/iinux-2.6/init/main.c
if you installed the Linux kernel documentation.
This next step of the boot process begins with a message that the Linux kernel is loading, and a series of messages is printed to the screen, giving you the status of each command in rc.sysinit
script language. A failure should display an error message. The -quiet
option may be passed to the kernel at boot time to suppress many of these messages.
Although it is not intended that you modify the rc.sysinit
script, knowledge of the contents of the file might aid you in diagnosing a problem if the boot process fails during this step. Look at /etc/rc.d/rc.sysinit
, and you will discover that it's just a text file filled with shell script language.
After the rc.sysinit
script has run, the basic system is configured and the kernel is in control of the system. If the boot process were halted at this point, the system would just sit idle and the screen would be blank. To make the system useful for users, you need to start the system services. Those services are some of the applications that enable you to interact with the system.
- Beginning the Boot Loading Process
- Loading the Linux Kernel
- System Services and Runlevels
- Runlevel Definitions
- Booting into the Default Runlevel
- Booting to a Nondefault Runlevel with GRUB
- Understanding init Scripts and the Final Stage of Initialization
- Controlling Services at Boot with Administrative Tools
- Running Services Through xinetd
- Changing Runlevels
- Beginning the Boot Loading Process
- Understanding init Scripts and the Final Stage of Initialization
- The Linux Kernel
- InterBase Classic Server под Linux
- Каталог BIN в InterBase Classic Server для Linux
- 4.4.4 The Dispatcher
- About the author
- Chapter 7. The state machine
- Chapter 16. Commercial products based on Linux, iptables and netfilter
- Appendix E. Other resources and links
- Example NAT machine in theory
- The final stage of our NAT machine