C6. Boot Process and System Monitoring
C6. Boot Process and System Monitoring
CHAPTER VI.
BOOT PROCESS AND SYSTEM MONITORING
1-1
Main contents
➢Boot Loading Process
➢Console-Based Monitoring
➢Graphical Process and System-Management Tools
1-2
Boot Loading Process
1-3
Boot Loading Process
❖ BIOS
• When the computer begins execution, it starts by executing this
code, which is also called the firmware, as it is normally stored in a
permanent form of memory, such as ROM, on the computer's
motherboard.
• This code must initialize the hardware on the motherboard other
than the CPU, and obtain the code for the next step, the boot
loader. Modern computers provide several possibilities for the boot
loader and the choice is normally set on the BIOS startup screen.
• The BIOS gets the system ready to load and run the software that
we recognize as the operating system. As a last step, the BIOS code
looks for a special program known as the boot loader or boot code.
1-4
Boot Loading Process
❖ Boot Loader
• A boot loader stored in the first sector of a hard disk, the Master Boot
Record, or MBR. This may be GRUB or LILO or yaboot or others.
• A boot loader stored on some other storage device, such as a CDR or USB
flash drive.
• A boot loader which uses the network, such as the Pre-Execution
Environment (PXE). This code is normally stored on a ROM on the
networking card itself.
• The need for the initial parts of the bootloader code on the first part of a
storage medium explains why some hard drives are 'bootable' and others
are not.
• If the BIOS detects a hardware problem, the boot process fails, and the
BIOS generates a few beeps from the system speaker.
1-5
Boot Loading Process
❖ Boot Loader
• The MBR contains the boot loader code and the partition table.
• It only requires 4096 Bits (512 bytes) of storage to store the GRUB and
Linux booting files inside the MBR partition. The GPT partitioning scheme
replaces the MBR table in the modern era.
• Unified Extensible Firmware Interface (UEFI) serves a similar role to BIOS
and has replaced BIOS in most modern systems. For most end users, the
difference is negligible, except that if you have a UEFI computer, you may
need to do some research to install Ubuntu.
• The boot loader locates the Linux kernel on the disk and loads it into
memory. After that task is completed, the boot loader passes control of
the system to the Linux kernel.
1-6
Boot Loading Process
1-7
SystemV runlevels
1-8
Boot Loading Process
1-9
https://www.techsupportpk.com/2015/05/linux-systemd-essentials-working-with-services-units-and-the-journal.html
Boot Loading Process
1-10
https://www.techsupportpk.com/2015/05/linux-systemd-essentials-working-with-services-units-and-the-journal.html
Boot Loading Process
1-11
Boot Loading Process
1-12
Boot Loading Process
1-13
Boot Loading Process
• Through the /proc file system, you can communicate directly with
the kernel to get a deep view of what is currently happening.
• Developers tend to use the /proc file system as a way of extracting
information from the kernel and for their programs to manipulate
that information into human-readable formats.
• Whenever an application or a command is launched, either from the
command line or a clicked icon, the process that comes from the
kernel is assigned an identification number called a process ID
(PID).
1-15
Console-Based Monitoring
1-16
Console-Based Monitoring
1-17
Console-Based Monitoring
1-18
Console-Based Monitoring
• free command utility displays the amount of free and used memory
in the system, in kilobytes
• df command
1-19
Console-Based Monitoring
1-20
Console-Based Monitoring
1-21
Graphical Process and System-Management Tools
❖ System Monitor
1-22
Graphical Process and System-Management Tools
❖ Conky
1-23
Graphical Process and System-Management Tools
❖ Auzia Conky
1-24
Graphical Process and System-Management Tools
1-25
Remarks
➢Remarks:
▪ This lecturer provides fundamentals of boot process
▪ Review chapter 15, 16 in textbook
▪ Practice with example commands and tools
1-26