3. What is Booting?
Booting is basically the process of starting the computer.
It is a short form of bootstrapping.
Bootstrapping usually refers to a self-starting
process that is supposed to proceed without
external input that is when the power
button is pressed CPU
starts its own process without
any human interference.
3
5. BIOS
It is an initial test performed by the BIOS.
POST (Power On Self Test).
If any error occurs, the system produces a beep
sound.
Loading MBR to RAM
5
6. MBR/EFI
BIOS assume that the boot device(hard disk/ SSD) start with the record called Master Boot
Record(MBR).
How BIOS see the the hard disk
MBR consists of 512 or more bytes located at the very beginning sector of the bootable device.
Boot block read the partitioning information from the MBR and identifies the disk partition marked as active and then
executes the second stage boot loader.
Below is a simplified structure of the MBR:
Bootsrap code : 446 bytes
partition table : 64 bytes
Boot signature : 2 bytes
6
7.
8. GRUB/LILO
If we have multiple kernal images installed on your system ,you
can choose which one to be executed.
Each operating system has its own bootloaders.
For example, GNU GRUB, LILO (Linux Loader), and rEFInd.
Main job is to load kernal and init image into memory.
9. Kernal
Initiate the kernel, the operating system now controls access to our
computer resources.
Linux kernel follows a predefined procedure:
decompress itself in place
perform hardware checks
gain access to vital peripheral hardware
run the init process
kernel initiates the init process, which starts the parent process.
the parent of all Linux processes is “Systemd”
9
11. Linux Kernel
Linux is kernel created in 1991 by Linus Torvalds
It’s been in constant development since then and is
now at version 6.2.0-36.
Its used in desktop,laptop,smartphones,servers and
Many other devices.
Free & Open Source : No need to pay
fast
Secure : Monolithic Kernel design
Scalability : From phones to super-computers
11
12. What is a Kernel ?
A computer needs both software and hardware to do
anything
There has to be a layer of softerware that operates
hardware at low lavel
It is the portion of the operating system code that is always
resident in memory and facilitates interactions between
hardware and software components
12
14. How does a kernel work?
The kernel responds to system calls ;
These are called by different parts of the operating system to get
The actual physical hardware to do things
For example, whenever you copile and run c code C library
uses system calls
14
15. What actualy kernel manages?
Random-access memory
Input/output devices
Memory management
Device management
Process management
System calls
15
16. Linux file-system
The Linux file system structure is a hierarchical arrangement of directories and files that defines
how data is organized and accessed in a Linux-based operating system.
18. file-system
A file system is a set of processes that controls how, where and when
data is stored and retrieved from a storage device.
19. Filesystem
structural way to store and access our files from the system
storage
various types of filesystems:
Ext (Extended Filesystem), Ext2, Ext3, Ext4
JFS (Journaling Filesystem)
Vfat
Ubifs.
tmpfs.
19