Chpt 3: How Linux Boots Flashcards
Расскажи вообще, как Linux грузится?
- A boot loader finds the kernel image on the disk, loads it into memory, and starts it.
- The kernel initializes the devices and its drivers.
- The kernel mounts the root filesystem.
- The kernel starts a program called init.
- init sets the rest of the processes in motion.
- The last processes that init starts as part of the boot sequence allow you to log in
How many runlevels Linux system has and how it works on them?
There are a few different variations, but most Linux distributions use the System V style discussed here.
Some distributions use a simpler version that resembles the BSD init, but you are unlikely to encounter
this.
3.1.1 Runlevels
At any given time on a Linux system, a certain base set of processes are running. This state of the
machine is called its runlevel, and it is denoted with a number from 0 through 6. The system spends most
of its time in a single runlevel. However, when you shut the machine down, init switches to a different
runlevel in order to terminate the system services in an orderly fashion and to tell the kernel to stop. Yet
another runlevel is for single-user mode.
What is init process (/sbin/init)?
There is nothing special about init. It is a program just like any other on the Linux system, and you’ll find
it in /sbin along with other system binaries. The main purpose of init is to start and stop other programs
in a particular sequence.
What is init configuration file?
/etc/inittab.
Where are rc scripts located?
/etc/rc.d/rc[runlevel number].d
What are files in /etc/rc.d?
Actually symlinks to files in /etc/init.d
stopped at: 3.1.4 Controlling init
f