Professional Documents
Culture Documents
OS
Linux
CentOS/RHEL
VCS
Interview Questions
Database
MariaDB
DevOps
Docker
Shell Scripting
Big Data
Hadoop
Cloudera
Hortonworks HDP
Linux Boot Process
by admin
In this article, we are going to study the “Linux Boot Process”. During the booting
time of the Linux operating system, the boot process has to go through six basic
stages.
Boot Stage 1
BIOS Checks: When a Linux server or desktop or laptop booted, The processor goes
for Basic Input/Output System or BIOS program and runs it. The BIOS controls do not
control only the first step of the boot process, but BIOS also provides the lowest
level interface to peripheral devices. It means during the BIOS initialization, all
hardware peripheral devices are checked out by BIOS. If BIOS found any hardware is
faulty, you will get a message on your screen. For this reason, BIOS Process is
written into read-only mode. The BIOS then loads into memory whatever program is
residing in the first sector of this device, called the Master Boot Record or MBR.
The MBR is only 512 bytes in size and contains machine code instructions for
booting the machine, called a boot loader, along with the partition table. Once the
BIOS finds and loads the boot loader program into memory,it yields control of the
boot process to it.
Boot Stage 4
INIT Program: The Linux operating system kernel transfers the control of the boot
process to the /sbin/init program. The /sbin/init program coordinates the rest of
the boot process and configures the environment for the user.
Boot Stage 5
User Environment Setup: The init program loads all services and user-space tools,
and mounts all partitions listed in /etc/fstab. When the init command starts, it
becomes the parent or grandparent of all of the processes that start up
automatically on the system. First, it runs the /etc/rc.d/rc.sysinit script, which
sets the environment path, starts swap, checks the file systems, and executes all
other steps required for system initialization. The init command then runs the
/etc/inittab script, which describes how the system should be set up in each SysV
init runlevel. The init program starts all of the background processes by looking
in the appropriate rc directory for the runlevel specified as the default in
/etc/inittab. The rc directories are numbered to correspond to the runlevel they
represent.
Primary Sidebar
Search this website
Search this website
Recent Posts
magick Command Examples
magento Command Examples
maestral Command Examples
m4 Command Examples