SlideShare a Scribd company logo
1 of 25
Welcome
     Boot Process in LINUX
            Courtesy : Prof. Sadiq Bashir

Main Objectives are :

1. You can change the Behavior of System , Look-n-feel as
   you desire (within certain limits) .

2. You can also Troubleshoot the problems arising at the
   time of booting.
System Boot-up
• USER
                                    SMPS( Switch Mode Power
      Presses Switch                    Supply) is a kind of
                                    REGULATOR. Through SMPS,
                                    Power is Regulated to Main
                                      Board and Other Areas

                Power Passes to
   Switch                         SMPS


                                                        Other Areas

                                                        1. CPU FAN
                                                        2. HARD DISK
                  Mother                                3. CD ROM
                  Board
IN MOTHER BOARD (A.K.A MAIN BOARD)
                                      CPU-Execute a Jump at 0xFFFFFFF0 ( 1st instruction after power on )
           CPU PIN                   "jump" instruction telling the processor where to go to find the real BIOS
                                     startup program
           RESETS                                                        BIOS(Basic Input/Output System) is built
                                                                         using Assembly Language. Its main
                                                                         function is to Load Kernel into Memory.
RAM(MEMORY)
                                                                         BIOS is a Program , located at a ROM
  1. BIOS                                                                Chip in Motherboard . It is also known as
                                                                         ROM Program . It Keeps the information
 2. CMOS                                        BIOS                     of all the Hardware and is responsible
                                                                         for major tasks in Boot Process.
                                                                         BIOS Gets Loaded in MEMORY.
                                                                          (Boot Strapping).
                                                                        POST(power-on self test ) is a Program that provides Status of
                                                                        all the peripherals connected to the System and checks if
                                                    POST                every device is functioning properly or
                                                                        The BIOS performs the power-on self test (POST). If there are
                                                                        any fatal errors, the boot process stops. POST beep codes can
                                                                        be found in this area of the Troubleshooting Expert



           Cmos(Complementary                                                CMOS is a Program , it checks the
           Metal-Oxide Semiconductor)
           battery gives power to Cmos             CMOS                      boot devices priority and also
  CMOS     program , so that it retains                                      identifies the 1st sector (0 Cylinder ,
           all its Contains (settings)
 BATTERY   even if the System Power is                                       0 Tracks) of H/D ,512 bytes in Size.
           OFF.
At the First Sector of HD (0 Cylinder = 0 Tracks = 1st Sector)
RAM(MEMORY)                                                                          HARD DISK
  1.BIOS                                                                       MBR
  2.CMOS                                                 1st Sector
  3.MBR


Stage 1 boot loader
The primary boot loader that resides in the MBR is a 512-byte image
containing both program code and a small partition table (see Figure 2).
The first 446 bytes are the primary boot loader, which contains both
executable code and error message text. The next sixty-four bytes are
the partition table, which contains a record for each of four partitions
(sixteen bytes each). The MBR ends with two bytes that are defined as
the magic number (0xAA55). The magic number serves as a validation
check of the MBR.




The job of the primary boot loader is to find and load the secondary boot
loader (stage 2). It does this by looking through the partition table for an
active partition. When it finds an active partition, it scans the remaining
partitions in the table to ensure that they're all inactive. When this is
verified, the active partition's boot record is read from the device into
RAM and executed.
Stage 2 boot loader
The secondary, or second-stage, boot loader could be more aptly called
the kernel loader. The task at this stage is to load the Linux kernel and
optional initial RAM disk.
Let us Understand MBR in Detail
Master Boot Record (MBR) is a Common Program in OS , whenever you boot your System
with the Bootable CD , The Installer (Anaconda in Linux) writes the MBR at the First Sector
of your H/D . As shown in above diagram, MBR is divided into 3 main parts .

 1. Boot Sector (446 Bytes) : Boot Sector is a Area in MBR , which contains the
     information of ‘Boot Loader’ like LILO & GRUB (of Linux (POWERFUL)) and NTLDR
     (of Windows (Less Powerful than LILO & GRUB)).
     Boot Loader will be responsible for Loading the ‘Kernel’ (Vmlinuz in our case) ,
     after BIOS assigns it the TASK to do so.
2. Partition Table (64 Bytes) : Partition Table is again a sub-divided part of MBR . It
   has 4 programs of 16 Bytes Each (4 X 16 b = 64 Bytes) . Each Program is Responsible
   for each Partition in H/D . Hence you cannot create more than 4 partitions in a H/D.
   Out of this 4 partition , you can create one partition as ‘Extended’ and create Sub
   partitions or Logical Partitions in it.

3. Magic Number (2 Bytes) : Magic Number basically shows the status of other two
   divisons of MBR. If Boot Sector and Partition Table are written Sucessfully , Magic
   Number will be ‘Yes’ , Otherwise it will be ‘No’.
Magic Number                               Reports
                 First CHECKS                                      If ‘No’
       BIOS                                                                       Error


                                              If ‘Yes’

                                                   Checks for Active Partition in PT.


                                         Partition Table

RAM(MEMORY)
 1.BIOS                                        Finds the Boot Loader in BS.
 2.CMOS
 3.MBR
 4.LILO | GRUB                  Boot Sector
                                                     BIOS now Loads the Boot Loader
                                                     (LILO or GRUB in our Case) in
                                                     Memory , a.k.a (First stage of LILO)
                                                     and Hands over the ‘Kernel
                            LILO | GRUB              Loading’ task to it .
INFO
/boot/boot.b is a binary                      LILO                      Functions to CALL BIOS
                                                                        1. Int 13 fn 8 --> "Get drive parameters"
file.                                                                   2. Int 13 fn 2 --> "Read sectors from drive"

CHS Numbers is
Considered to be the
MOTHER TONGUE of BIOS
                               ( Int 13 Fn 8)


                                BIOS                  Below are given some few important differences about LILO and GRUB

                                   To load                        LILO                                  GRUB
                                                  LILO has no interactive command GRUB has interactive command interface
                                                  interface
                                                  LILO does not support booting      GRUB does support booting from a
                           /boot/boot.b           from a network                     network
                                                  If you change your LILO config     GRUB automatically detects any change in
                                                  file, you have to rewrite the LILO config file and auto loads the OS
                                                  stage one boot loader to the MBR
                                                  LILO supports only linux operating GRUB supports large number of OS
                                                  system

               (Int 13 Fn 2)             (Int 13 Fn 2)
               BIOS                            BIOS
                                                                  ( Int 13 Fn 2)
                                                                                   To load
/boot/Message                                /boot/Map CHS NO. BIOS                                /boot/vimlinuz
Installer (Anaconda), provides the Cylindrical Head Sector (CHS) number of /boot/boot.b ,
 /boot/Message & /boot/Map file to LILO. LILO can Load all these file with the help of CHS
 Number , however it doesn’t understand CHS number , So it Calls BIOS to help it Load all
 these files . LILO uses a function (Int 13 Fn 8) for /boot/boot.b & function (Int 13 Fn 2) for
 other files , to Call BIOS.

 After Function (Int 13 Fn 8) is executed ,BIOS Loads boot.b file into Memory , it is known as
 Second stage of LILO . And When Function (Int 13 Fn 2) is executed one by one ,BIOS Loads
 both Message and Map file into Memory.

 RAM(MEMORY)                                   Important files in /boot directory
1. BIOS
                                                       1 . Boot.b
2. CMOS
                                                       2. Message
3. MBR
                                                       3. Map
4. LILO || GRUB
                                                       4. Vmlinuz
5. Boot.b
                                                       5. Initrd.img
6. Message
7. Map
1. /Message has CHS Number of ‘Splash Screen (also known as Kernel Listings)’ and it calls
BIOS to Load this , for the same reason ,as it doesn’t understand CHS Number.

2. /Map has CHS Number of ‘vmlinuz’ and it calls BIOS to Load this , as it doesn’t understand
CHS Number.
                            ! Hope this is Self Explanatory !           /Map
       /Message
                                  RAM(MEMORY)                               CHS No.
              CHS No.
                                  1. BIOS
                                  2. CMOS                            ( Int 13 Fn 2)
      ( Int 13 Fn 2)
                                  3. MBR
                                  4. LILO || GRUB
                                  5. Boot.b                             BIOS
           BIOS                   6. Message
                                  7. Map
                                  8. Vmlinuz                      Vmlinuz (Kernel)
     Splash Screen
The kernel is the central part of an operating system, that directly controls
the computer hardware. Usually, the kernel is the first of the user-installed software on a
computer, booting directly after the BIOS. Kernel is in bzip format.
Kernel has a CHS Number of initrd.img (INITIAL RAM DISK) , it Calls BIOS by (Int 13 fn 2)
function and it loads initrd.img into Memory . Initrd.img is located at /boot and is in gzip
format. Initrd.img has 4 main files :

        1. nash - Nash is a Minimal shell , it takes low memory . It is used to run linuxrc script.
        2. ext3 0 - kernel needs a driver file called ‘ext3 0’ for filesystems without which , you
                    you cannot mount any partition.
        3. JBD 0 – It’s a H/D disk driver file.
        4. Linuxrc – It’s a Script file , having functions of ext 3 0 and JBD 0 and also function to
                     mount ‘/’ (slash) partition.


Initrd.img is extracted / decompressed and its Contents (above 4 files) are Loaded into ‘RAM
DISK’

                                WHAT IS RAM DISK ?
A RAM disk is a portion of RAM which is being used as if it were a disk drive. RAM disks have
fixed sizes, and act like regular disk partitions. Access time is much faster for a RAM disk than
for a real, physical disk. However, any data stored on a RAM disk is lost when the system is shut
down or powered off. RAM disks can be a great place to store temporary data.
/boot/vimlinuz

                    (int 13 fn 2)
  RAM(MEMORY)
  1. BIOS
                                                 BIOS
  2. CMOS
  3. MBR
  4. LILO
  5. Boot.b                                   initrd.img
  6. Message
  7. Map
  8. Vimlinuz
  9. ext3.0
  10. jbd.0                    At RAM DISK , first ‘Nash’ will be activated to run
                               the script file ,linuxrc . This Script file will now
                               run functions of ext3 0 , JBD 0 and mounting
       RAM DISK                function of ‘/’ (slash) , this mounting is also called
                               ‘Sysroot’.
  1.   Nash
  2.   Ext3 0                  In linuxrc script ‘Mounting of ‘/’ (slash) ,looks
  3.   JBD 0                   something like this
  4.   Linuxrc                 #mount /dev/root / ro ------ (read only)


XXXXXXXXXXXXXX XX   END OF KERNEL LAND                   XXXXXXXXXXXXXXXXXXXXXXXX
NASH                     It’s a minimal shell . Uses very low memory .
                                Nash will be activated first.



         RUNS



                                            It’s a Script file , having instructions to
                                            load ext3.0 and jbd.0 and also
                                            function to mount ‘/’ (slash)
                LINUXRC                     partition in ro (read only ).




                                                              #mount /dev/root / ro
                                            Mounts ‘/’
                                            partition


XXXXXXXXXXXXXX XX         END OF KERNEL LAND               XXXXXXXXXXXXXXXXXXXXXXXX
************************* START OF USERLAND ***********************************

As the ‘/’ (slash) Partition is now mounted , Kernel now opens the First file with the ‘Inode
Number’ . The File it opens is located at ‘/sbin/init’ . Init is the very first process to start and
hence it has the pid (process Id) Number as 1.
Init file is a Binary file (executable) and it has been given an Instructions to Load a file called
/etc/inittab.

    Kernel




                                   /sbin/init




                                                                  /etc/inittab
HIERARCHY
/sbin/init
                /etc/inittab
                               Checks Default RUNLEVELS
                               System Initialisation (System V)
                               ( /etc/rc.d/rc.Sysinit)

                                        Opens a Sub-Shell


                               1. /etc/sysconfig/Network:
                                  This file is related to Network . You
                                  can Enable or Disable Network from
                                  this file .

                               2. Hostname:
                                   You can also set HOSTNAME in this
                                  file eg: Server.Example.com. The
                                  Default Hostname is ‘localhost’.

                               3. Mount –n –t proc / proc /proc
4. /etc/init.d/functions:{global umask
global PATH, defines 17 shell functions
{ success,failure,passed,warning echo_success echo_failure
  echo_passed, echo_warning ,killproc, pidofproc,pidfileofproc
  action,checkpid,confirm, status,strstr,daemon }


5. /etc/redhat-release:
   You can change the Release name with
    this file .

6. Press ‘i’ to enter interactive setup:
   You can enter into ‘Interactive’ mode
   to customise your booting .

7. /etc/sysconfig/clock:
   This file contains UTC Time Zone.This
   file updates the file at /etc/localtime.

8. /sbin/start_udev:
    Udev stands for Universal Device . It is
    a very critical file.Udev initialises ‘dev’
    files under /dev directory. You can also
    change Owner and root of device
    driver files
9. /etc/sysconfig/init :
   You can the set this file’s ‘Graphical’
    variable to ‘Yes’ or ‘No’ . This basically
   gives booting information in Graphics
   or console .

10. /etc/sysctl.conf:
    This file is for KERNEL tuning.

11. /etc/sysconfig/keyboard:
    You can Understand ‘Control keys’
   with this file.

12. /fastboot:
     This file , if created in ‘/’ (slash)
    partition , ensures that the ‘fsck’ (File
    system check) operation is skipped.
    This file will even skip the ‘fsck’
    operation even if its mentioned in
    ‘/etc/fstab’ file.
13. /forcefsck :
    This file will make sure , if created at ‘/’
   Slash Partition, the ‘fsck’ operation is
   performed . Even if its not mentioned
   in ‘/etc/fstab’ file.

14. /etc/sysconfig/readonly-root:
    You can set the Entire Filesystems to
    Readonly = ‘Yes’ or ‘No’

15. /etc/rwtab:
    This can be considered as an exception
   to ‘/etc/sysconfig/readonly-root’ which
   means if you make the entire
   filesystem to read only and wanted to
   give exceptions to certain files/dir then
   you can make use of this file to give
   ‘Read-Write’ permission to them.

16. /etc/fstab: This file keeps the
   information of all mounted and
   umounted partitions.(Now hear / Is
   remounted with rw as it was in ro)
17. /etc/mtab:
                   mtab stands for ‘Mount Tab’ . When
                   you run ‘#mount’ command , it refers
                   to this file. It keeps the information of
                   all mounted partition only.

               18. /sbin/quotaon:


               19. ‘Enabling /etc/fstab swaps:


               20. /var/log/dmesg:




/etc/rc.d/rc     This file is responsible for
                 starting / stopping services
                 when runlevel changes.
                 (RC = RUNLEVEL CHANGE).
/etc/rc.d/rc




               1. Checks RUNLEVEL.

               2. Checks RUNLEVEL COMMAND from
                  /etc/inittab file

               3. /etc/rc$.d/K*
                  /etc/rc$.d/S*

               $ indicates RUNLEVEL Number whereas ‘K’
                  shows that service name with first letter
                  ‘K’ will be KILLED and service name
                  starting with ‘S’ will be ‘STARTED’. All
                  files at this location are symbolic link of
                  its parent file at /etc/init.d/servicename

               4. /etc/rc.local – To run any task or Script
                   before login.
Runlevels
• A runlevel is a software configuration of the
  system which allows only a selected group of
  processes to exist
• The processes spawned by init for each of
  these runlevels are defined in the /etc/inittab
  file
• Init can be in one of seven runlevels: 0-6



                                                    20
/sbin/mingetty ( Runlevel-1,2,3)
                tty1 ,tty2,tty3,tty4,tty5,tty6
               (Can be increased upto tty12)

Depends
Upon the
Runlevel                       OR
set in
/etc/inittab
                /etc/X11/prefdm (Runlevel - 5)




           /etc/issue

           The file /etc/issue is a text file which
           contains a message or system
           identification to be printed before the
           login prompt. It may contain
           various @char and char sequences.
/bin/login
Login command is used when signing onto a system. It can also
be used to switch from one user to another at any time (most
modern shells have support for this feature built into them,
however).


           /bin/passwd : Will Prompt you for Password


                              PAM

                              /etc/passwd

                              /etc/shadow

                              /etc/group

                              /etc/gshadow


/.hushlogin

lastlog
/etc/motd >>> “Message of the day”

/var/spool/mail

/bin/bash

            /etc/profile

                           Definition of ‘PATH’

                           Hostname Variable

                           HISTSIZE (Cmd history limit)

                           /etc/inputrc

                           /etc/profile.d/*.sh
                           After Login , you can run any
                           scripts from this location
                           automatically.
/etc/bashrc

                                          umask

                                          PS1 >>> Variable for Prompt.


                       Global User settings can be done at /etc/profile and
                       /etc/bashrc
This file is for
respective user.
You can set umask             /root/. bashrc
at individual level.
                              /root/. bashrc_profile
In this case ‘root’
is considered to              /root/. bash_logout
be the user.
END OF BOOT PROCESS
    THANK YOU

More Related Content

What's hot

Dokumen Kode Program.pdf
Dokumen Kode Program.pdfDokumen Kode Program.pdf
Dokumen Kode Program.pdfFajar Baskoro
 
X3DOM - An Overview and Examples
X3DOM - An Overview and ExamplesX3DOM - An Overview and Examples
X3DOM - An Overview and Examplesjsalonen Salonen
 
Media Pembelajaran TIK Kelas IX Semester 1
Media Pembelajaran TIK Kelas IX Semester 1Media Pembelajaran TIK Kelas IX Semester 1
Media Pembelajaran TIK Kelas IX Semester 1Naufaldin Daffa
 
Ios operating system
Ios operating systemIos operating system
Ios operating systemTIB Academy
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schkannikadg
 
Cucumber - Curso de Automatización de Pruebas
Cucumber - Curso de Automatización de PruebasCucumber - Curso de Automatización de Pruebas
Cucumber - Curso de Automatización de PruebasTestingBaires
 
Scope of Android and Future Work
Scope of Android and Future WorkScope of Android and Future Work
Scope of Android and Future WorkRabiRehman1
 
Chapter 3 Software.ppt
Chapter 3 Software.pptChapter 3 Software.ppt
Chapter 3 Software.pptAmanuelZewdie4
 
Mac OS(Operating System)
Mac OS(Operating System)Mac OS(Operating System)
Mac OS(Operating System)Faizan Shaikh
 
Black berry technology
Black berry technologyBlack berry technology
Black berry technologyDeevena Dayaal
 
Materi PWPB kelas XII RPL - Aplikasi web dengan model Model View Controler (MVC)
Materi PWPB kelas XII RPL - Aplikasi web dengan model Model View Controler (MVC)Materi PWPB kelas XII RPL - Aplikasi web dengan model Model View Controler (MVC)
Materi PWPB kelas XII RPL - Aplikasi web dengan model Model View Controler (MVC)Hernowo Indra Gunanto
 
الدرس الرابع - البيانات وأنظمة الترميز
الدرس الرابع - البيانات وأنظمة الترميزالدرس الرابع - البيانات وأنظمة الترميز
الدرس الرابع - البيانات وأنظمة الترميزia7lam
 
Modul Training Membangun Sistem Lab From Home (LFH)
Modul Training Membangun Sistem Lab From Home (LFH)Modul Training Membangun Sistem Lab From Home (LFH)
Modul Training Membangun Sistem Lab From Home (LFH)I Putu Hariyadi
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version Historyvoltaincx
 
Beginning android application development wei meng lee
Beginning android application development wei meng leeBeginning android application development wei meng lee
Beginning android application development wei meng leeHiệp Lê Quang
 

What's hot (20)

Blackberry ppt
Blackberry pptBlackberry ppt
Blackberry ppt
 
Dokumen Kode Program.pdf
Dokumen Kode Program.pdfDokumen Kode Program.pdf
Dokumen Kode Program.pdf
 
X3DOM - An Overview and Examples
X3DOM - An Overview and ExamplesX3DOM - An Overview and Examples
X3DOM - An Overview and Examples
 
Media Pembelajaran TIK Kelas IX Semester 1
Media Pembelajaran TIK Kelas IX Semester 1Media Pembelajaran TIK Kelas IX Semester 1
Media Pembelajaran TIK Kelas IX Semester 1
 
Ios operating system
Ios operating systemIos operating system
Ios operating system
 
History of mobile apps
History of mobile appsHistory of mobile apps
History of mobile apps
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 sch
 
Cucumber - Curso de Automatización de Pruebas
Cucumber - Curso de Automatización de PruebasCucumber - Curso de Automatización de Pruebas
Cucumber - Curso de Automatización de Pruebas
 
Scope of Android and Future Work
Scope of Android and Future WorkScope of Android and Future Work
Scope of Android and Future Work
 
Chapter 3 Software.ppt
Chapter 3 Software.pptChapter 3 Software.ppt
Chapter 3 Software.ppt
 
Mac OS(Operating System)
Mac OS(Operating System)Mac OS(Operating System)
Mac OS(Operating System)
 
Software computer
Software computerSoftware computer
Software computer
 
Syntax analysis
Syntax analysisSyntax analysis
Syntax analysis
 
Black berry technology
Black berry technologyBlack berry technology
Black berry technology
 
Materi PWPB kelas XII RPL - Aplikasi web dengan model Model View Controler (MVC)
Materi PWPB kelas XII RPL - Aplikasi web dengan model Model View Controler (MVC)Materi PWPB kelas XII RPL - Aplikasi web dengan model Model View Controler (MVC)
Materi PWPB kelas XII RPL - Aplikasi web dengan model Model View Controler (MVC)
 
الدرس الرابع - البيانات وأنظمة الترميز
الدرس الرابع - البيانات وأنظمة الترميزالدرس الرابع - البيانات وأنظمة الترميز
الدرس الرابع - البيانات وأنظمة الترميز
 
Modul Training Membangun Sistem Lab From Home (LFH)
Modul Training Membangun Sistem Lab From Home (LFH)Modul Training Membangun Sistem Lab From Home (LFH)
Modul Training Membangun Sistem Lab From Home (LFH)
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
Assembler
AssemblerAssembler
Assembler
 
Beginning android application development wei meng lee
Beginning android application development wei meng leeBeginning android application development wei meng lee
Beginning android application development wei meng lee
 

Similar to Boot process -test

1.0 introduction to personal computer
1.0  introduction to personal computer1.0  introduction to personal computer
1.0 introduction to personal computerGagandeep Singh
 
Questions1. Research the Master Boot Record. Write a long paragra.pdf
Questions1. Research the Master Boot Record. Write a long paragra.pdfQuestions1. Research the Master Boot Record. Write a long paragra.pdf
Questions1. Research the Master Boot Record. Write a long paragra.pdfRahul04August
 
An Insight into the Linux Booting Process
An Insight into the Linux Booting ProcessAn Insight into the Linux Booting Process
An Insight into the Linux Booting ProcessHardeep Bhurji
 
Linux boot process
Linux boot processLinux boot process
Linux boot processbrusnigin
 
Basics of boot-loader
Basics of boot-loaderBasics of boot-loader
Basics of boot-loaderiamumr
 
Funciones del bios y codigos post ingles
Funciones del bios y codigos post inglesFunciones del bios y codigos post ingles
Funciones del bios y codigos post inglesJose Antonio Torres P
 
Grub2 Booting Process
Grub2 Booting ProcessGrub2 Booting Process
Grub2 Booting ProcessMike Wang
 
Booting process by Amar singh
Booting process by Amar singhBooting process by Amar singh
Booting process by Amar singhAmar Singh
 

Similar to Boot process -test (20)

Boot process
Boot processBoot process
Boot process
 
BOOTING.ppt
BOOTING.pptBOOTING.ppt
BOOTING.ppt
 
1.0 introduction to personal computer
1.0  introduction to personal computer1.0  introduction to personal computer
1.0 introduction to personal computer
 
Questions1. Research the Master Boot Record. Write a long paragra.pdf
Questions1. Research the Master Boot Record. Write a long paragra.pdfQuestions1. Research the Master Boot Record. Write a long paragra.pdf
Questions1. Research the Master Boot Record. Write a long paragra.pdf
 
Linux Booting Steps
Linux Booting StepsLinux Booting Steps
Linux Booting Steps
 
An Insight into the Linux Booting Process
An Insight into the Linux Booting ProcessAn Insight into the Linux Booting Process
An Insight into the Linux Booting Process
 
bios.docx
bios.docxbios.docx
bios.docx
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 
Xp boot process
Xp boot processXp boot process
Xp boot process
 
ROM BIOS & POST
ROM BIOS & POSTROM BIOS & POST
ROM BIOS & POST
 
ROM BIOS & POST
ROM BIOS & POSTROM BIOS & POST
ROM BIOS & POST
 
Basics of boot-loader
Basics of boot-loaderBasics of boot-loader
Basics of boot-loader
 
BIOS/UEFI
BIOS/UEFIBIOS/UEFI
BIOS/UEFI
 
Funciones del bios y codigos post ingles
Funciones del bios y codigos post inglesFunciones del bios y codigos post ingles
Funciones del bios y codigos post ingles
 
BIOS
BIOSBIOS
BIOS
 
Grub2 Booting Process
Grub2 Booting ProcessGrub2 Booting Process
Grub2 Booting Process
 
COMPUTER Bios
COMPUTER BiosCOMPUTER Bios
COMPUTER Bios
 
Bios
BiosBios
Bios
 
Ict resources
Ict resourcesIct resources
Ict resources
 
Booting process by Amar singh
Booting process by Amar singhBooting process by Amar singh
Booting process by Amar singh
 

Recently uploaded

Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`dajasot375
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCRdollysharma2066
 
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一Fi sss
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdfvaibhavkanaujia
 
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书zdzoqco
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一F La
 
Call Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full NightCall Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,Aginakm1
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Servicejennyeacort
 
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxmapanig881
 
3D Printing And Designing Final Report.pdf
3D Printing And Designing Final Report.pdf3D Printing And Designing Final Report.pdf
3D Printing And Designing Final Report.pdfSwaraliBorhade
 
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
ARt app | UX Case Study
ARt app | UX Case StudyARt app | UX Case Study
ARt app | UX Case StudySophia Viganò
 
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxIntroduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxnewslab143
 
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一Fi L
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricksabhishekparmar618
 
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 

Recently uploaded (20)

Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
 
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdf
 
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
 
Call Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full NightCall Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full Night
 
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
 
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptx
 
3D Printing And Designing Final Report.pdf
3D Printing And Designing Final Report.pdf3D Printing And Designing Final Report.pdf
3D Printing And Designing Final Report.pdf
 
Call Girls in Pratap Nagar, 9953056974 Escort Service
Call Girls in Pratap Nagar,  9953056974 Escort ServiceCall Girls in Pratap Nagar,  9953056974 Escort Service
Call Girls in Pratap Nagar, 9953056974 Escort Service
 
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
ARt app | UX Case Study
ARt app | UX Case StudyARt app | UX Case Study
ARt app | UX Case Study
 
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxIntroduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
 
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
办理学位证(TheAuckland证书)新西兰奥克兰大学毕业证成绩单原版一比一
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricks
 
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
 

Boot process -test

  • 1. Welcome Boot Process in LINUX Courtesy : Prof. Sadiq Bashir Main Objectives are : 1. You can change the Behavior of System , Look-n-feel as you desire (within certain limits) . 2. You can also Troubleshoot the problems arising at the time of booting.
  • 2. System Boot-up • USER SMPS( Switch Mode Power Presses Switch Supply) is a kind of REGULATOR. Through SMPS, Power is Regulated to Main Board and Other Areas Power Passes to Switch SMPS Other Areas 1. CPU FAN 2. HARD DISK Mother 3. CD ROM Board
  • 3. IN MOTHER BOARD (A.K.A MAIN BOARD) CPU-Execute a Jump at 0xFFFFFFF0 ( 1st instruction after power on ) CPU PIN "jump" instruction telling the processor where to go to find the real BIOS startup program RESETS BIOS(Basic Input/Output System) is built using Assembly Language. Its main function is to Load Kernel into Memory. RAM(MEMORY) BIOS is a Program , located at a ROM 1. BIOS Chip in Motherboard . It is also known as ROM Program . It Keeps the information 2. CMOS BIOS of all the Hardware and is responsible for major tasks in Boot Process. BIOS Gets Loaded in MEMORY. (Boot Strapping). POST(power-on self test ) is a Program that provides Status of all the peripherals connected to the System and checks if POST every device is functioning properly or The BIOS performs the power-on self test (POST). If there are any fatal errors, the boot process stops. POST beep codes can be found in this area of the Troubleshooting Expert Cmos(Complementary CMOS is a Program , it checks the Metal-Oxide Semiconductor) battery gives power to Cmos CMOS boot devices priority and also CMOS program , so that it retains identifies the 1st sector (0 Cylinder , all its Contains (settings) BATTERY even if the System Power is 0 Tracks) of H/D ,512 bytes in Size. OFF.
  • 4. At the First Sector of HD (0 Cylinder = 0 Tracks = 1st Sector) RAM(MEMORY) HARD DISK 1.BIOS MBR 2.CMOS 1st Sector 3.MBR Stage 1 boot loader The primary boot loader that resides in the MBR is a 512-byte image containing both program code and a small partition table (see Figure 2). The first 446 bytes are the primary boot loader, which contains both executable code and error message text. The next sixty-four bytes are the partition table, which contains a record for each of four partitions (sixteen bytes each). The MBR ends with two bytes that are defined as the magic number (0xAA55). The magic number serves as a validation check of the MBR. The job of the primary boot loader is to find and load the secondary boot loader (stage 2). It does this by looking through the partition table for an active partition. When it finds an active partition, it scans the remaining partitions in the table to ensure that they're all inactive. When this is verified, the active partition's boot record is read from the device into RAM and executed. Stage 2 boot loader The secondary, or second-stage, boot loader could be more aptly called the kernel loader. The task at this stage is to load the Linux kernel and optional initial RAM disk.
  • 5. Let us Understand MBR in Detail Master Boot Record (MBR) is a Common Program in OS , whenever you boot your System with the Bootable CD , The Installer (Anaconda in Linux) writes the MBR at the First Sector of your H/D . As shown in above diagram, MBR is divided into 3 main parts . 1. Boot Sector (446 Bytes) : Boot Sector is a Area in MBR , which contains the information of ‘Boot Loader’ like LILO & GRUB (of Linux (POWERFUL)) and NTLDR (of Windows (Less Powerful than LILO & GRUB)). Boot Loader will be responsible for Loading the ‘Kernel’ (Vmlinuz in our case) , after BIOS assigns it the TASK to do so. 2. Partition Table (64 Bytes) : Partition Table is again a sub-divided part of MBR . It has 4 programs of 16 Bytes Each (4 X 16 b = 64 Bytes) . Each Program is Responsible for each Partition in H/D . Hence you cannot create more than 4 partitions in a H/D. Out of this 4 partition , you can create one partition as ‘Extended’ and create Sub partitions or Logical Partitions in it. 3. Magic Number (2 Bytes) : Magic Number basically shows the status of other two divisons of MBR. If Boot Sector and Partition Table are written Sucessfully , Magic Number will be ‘Yes’ , Otherwise it will be ‘No’.
  • 6. Magic Number Reports First CHECKS If ‘No’ BIOS Error If ‘Yes’ Checks for Active Partition in PT. Partition Table RAM(MEMORY) 1.BIOS Finds the Boot Loader in BS. 2.CMOS 3.MBR 4.LILO | GRUB Boot Sector BIOS now Loads the Boot Loader (LILO or GRUB in our Case) in Memory , a.k.a (First stage of LILO) and Hands over the ‘Kernel LILO | GRUB Loading’ task to it .
  • 7. INFO /boot/boot.b is a binary LILO Functions to CALL BIOS 1. Int 13 fn 8 --> "Get drive parameters" file. 2. Int 13 fn 2 --> "Read sectors from drive" CHS Numbers is Considered to be the MOTHER TONGUE of BIOS ( Int 13 Fn 8) BIOS Below are given some few important differences about LILO and GRUB To load LILO GRUB LILO has no interactive command GRUB has interactive command interface interface LILO does not support booting GRUB does support booting from a /boot/boot.b from a network network If you change your LILO config GRUB automatically detects any change in file, you have to rewrite the LILO config file and auto loads the OS stage one boot loader to the MBR LILO supports only linux operating GRUB supports large number of OS system (Int 13 Fn 2) (Int 13 Fn 2) BIOS BIOS ( Int 13 Fn 2) To load /boot/Message /boot/Map CHS NO. BIOS /boot/vimlinuz
  • 8. Installer (Anaconda), provides the Cylindrical Head Sector (CHS) number of /boot/boot.b , /boot/Message & /boot/Map file to LILO. LILO can Load all these file with the help of CHS Number , however it doesn’t understand CHS number , So it Calls BIOS to help it Load all these files . LILO uses a function (Int 13 Fn 8) for /boot/boot.b & function (Int 13 Fn 2) for other files , to Call BIOS. After Function (Int 13 Fn 8) is executed ,BIOS Loads boot.b file into Memory , it is known as Second stage of LILO . And When Function (Int 13 Fn 2) is executed one by one ,BIOS Loads both Message and Map file into Memory. RAM(MEMORY) Important files in /boot directory 1. BIOS 1 . Boot.b 2. CMOS 2. Message 3. MBR 3. Map 4. LILO || GRUB 4. Vmlinuz 5. Boot.b 5. Initrd.img 6. Message 7. Map
  • 9. 1. /Message has CHS Number of ‘Splash Screen (also known as Kernel Listings)’ and it calls BIOS to Load this , for the same reason ,as it doesn’t understand CHS Number. 2. /Map has CHS Number of ‘vmlinuz’ and it calls BIOS to Load this , as it doesn’t understand CHS Number. ! Hope this is Self Explanatory ! /Map /Message RAM(MEMORY) CHS No. CHS No. 1. BIOS 2. CMOS ( Int 13 Fn 2) ( Int 13 Fn 2) 3. MBR 4. LILO || GRUB 5. Boot.b BIOS BIOS 6. Message 7. Map 8. Vmlinuz Vmlinuz (Kernel) Splash Screen
  • 10. The kernel is the central part of an operating system, that directly controls the computer hardware. Usually, the kernel is the first of the user-installed software on a computer, booting directly after the BIOS. Kernel is in bzip format. Kernel has a CHS Number of initrd.img (INITIAL RAM DISK) , it Calls BIOS by (Int 13 fn 2) function and it loads initrd.img into Memory . Initrd.img is located at /boot and is in gzip format. Initrd.img has 4 main files : 1. nash - Nash is a Minimal shell , it takes low memory . It is used to run linuxrc script. 2. ext3 0 - kernel needs a driver file called ‘ext3 0’ for filesystems without which , you you cannot mount any partition. 3. JBD 0 – It’s a H/D disk driver file. 4. Linuxrc – It’s a Script file , having functions of ext 3 0 and JBD 0 and also function to mount ‘/’ (slash) partition. Initrd.img is extracted / decompressed and its Contents (above 4 files) are Loaded into ‘RAM DISK’ WHAT IS RAM DISK ? A RAM disk is a portion of RAM which is being used as if it were a disk drive. RAM disks have fixed sizes, and act like regular disk partitions. Access time is much faster for a RAM disk than for a real, physical disk. However, any data stored on a RAM disk is lost when the system is shut down or powered off. RAM disks can be a great place to store temporary data.
  • 11. /boot/vimlinuz (int 13 fn 2) RAM(MEMORY) 1. BIOS BIOS 2. CMOS 3. MBR 4. LILO 5. Boot.b initrd.img 6. Message 7. Map 8. Vimlinuz 9. ext3.0 10. jbd.0 At RAM DISK , first ‘Nash’ will be activated to run the script file ,linuxrc . This Script file will now run functions of ext3 0 , JBD 0 and mounting RAM DISK function of ‘/’ (slash) , this mounting is also called ‘Sysroot’. 1. Nash 2. Ext3 0 In linuxrc script ‘Mounting of ‘/’ (slash) ,looks 3. JBD 0 something like this 4. Linuxrc #mount /dev/root / ro ------ (read only) XXXXXXXXXXXXXX XX END OF KERNEL LAND XXXXXXXXXXXXXXXXXXXXXXXX
  • 12. NASH It’s a minimal shell . Uses very low memory . Nash will be activated first. RUNS It’s a Script file , having instructions to load ext3.0 and jbd.0 and also function to mount ‘/’ (slash) LINUXRC partition in ro (read only ). #mount /dev/root / ro Mounts ‘/’ partition XXXXXXXXXXXXXX XX END OF KERNEL LAND XXXXXXXXXXXXXXXXXXXXXXXX
  • 13. ************************* START OF USERLAND *********************************** As the ‘/’ (slash) Partition is now mounted , Kernel now opens the First file with the ‘Inode Number’ . The File it opens is located at ‘/sbin/init’ . Init is the very first process to start and hence it has the pid (process Id) Number as 1. Init file is a Binary file (executable) and it has been given an Instructions to Load a file called /etc/inittab. Kernel /sbin/init /etc/inittab
  • 14. HIERARCHY /sbin/init /etc/inittab Checks Default RUNLEVELS System Initialisation (System V) ( /etc/rc.d/rc.Sysinit) Opens a Sub-Shell 1. /etc/sysconfig/Network: This file is related to Network . You can Enable or Disable Network from this file . 2. Hostname: You can also set HOSTNAME in this file eg: Server.Example.com. The Default Hostname is ‘localhost’. 3. Mount –n –t proc / proc /proc
  • 15. 4. /etc/init.d/functions:{global umask global PATH, defines 17 shell functions { success,failure,passed,warning echo_success echo_failure echo_passed, echo_warning ,killproc, pidofproc,pidfileofproc action,checkpid,confirm, status,strstr,daemon } 5. /etc/redhat-release: You can change the Release name with this file . 6. Press ‘i’ to enter interactive setup: You can enter into ‘Interactive’ mode to customise your booting . 7. /etc/sysconfig/clock: This file contains UTC Time Zone.This file updates the file at /etc/localtime. 8. /sbin/start_udev: Udev stands for Universal Device . It is a very critical file.Udev initialises ‘dev’ files under /dev directory. You can also change Owner and root of device driver files
  • 16. 9. /etc/sysconfig/init : You can the set this file’s ‘Graphical’ variable to ‘Yes’ or ‘No’ . This basically gives booting information in Graphics or console . 10. /etc/sysctl.conf: This file is for KERNEL tuning. 11. /etc/sysconfig/keyboard: You can Understand ‘Control keys’ with this file. 12. /fastboot: This file , if created in ‘/’ (slash) partition , ensures that the ‘fsck’ (File system check) operation is skipped. This file will even skip the ‘fsck’ operation even if its mentioned in ‘/etc/fstab’ file.
  • 17. 13. /forcefsck : This file will make sure , if created at ‘/’ Slash Partition, the ‘fsck’ operation is performed . Even if its not mentioned in ‘/etc/fstab’ file. 14. /etc/sysconfig/readonly-root: You can set the Entire Filesystems to Readonly = ‘Yes’ or ‘No’ 15. /etc/rwtab: This can be considered as an exception to ‘/etc/sysconfig/readonly-root’ which means if you make the entire filesystem to read only and wanted to give exceptions to certain files/dir then you can make use of this file to give ‘Read-Write’ permission to them. 16. /etc/fstab: This file keeps the information of all mounted and umounted partitions.(Now hear / Is remounted with rw as it was in ro)
  • 18. 17. /etc/mtab: mtab stands for ‘Mount Tab’ . When you run ‘#mount’ command , it refers to this file. It keeps the information of all mounted partition only. 18. /sbin/quotaon: 19. ‘Enabling /etc/fstab swaps: 20. /var/log/dmesg: /etc/rc.d/rc This file is responsible for starting / stopping services when runlevel changes. (RC = RUNLEVEL CHANGE).
  • 19. /etc/rc.d/rc 1. Checks RUNLEVEL. 2. Checks RUNLEVEL COMMAND from /etc/inittab file 3. /etc/rc$.d/K* /etc/rc$.d/S* $ indicates RUNLEVEL Number whereas ‘K’ shows that service name with first letter ‘K’ will be KILLED and service name starting with ‘S’ will be ‘STARTED’. All files at this location are symbolic link of its parent file at /etc/init.d/servicename 4. /etc/rc.local – To run any task or Script before login.
  • 20. Runlevels • A runlevel is a software configuration of the system which allows only a selected group of processes to exist • The processes spawned by init for each of these runlevels are defined in the /etc/inittab file • Init can be in one of seven runlevels: 0-6 20
  • 21. /sbin/mingetty ( Runlevel-1,2,3) tty1 ,tty2,tty3,tty4,tty5,tty6 (Can be increased upto tty12) Depends Upon the Runlevel OR set in /etc/inittab /etc/X11/prefdm (Runlevel - 5) /etc/issue The file /etc/issue is a text file which contains a message or system identification to be printed before the login prompt. It may contain various @char and char sequences.
  • 22. /bin/login Login command is used when signing onto a system. It can also be used to switch from one user to another at any time (most modern shells have support for this feature built into them, however). /bin/passwd : Will Prompt you for Password PAM /etc/passwd /etc/shadow /etc/group /etc/gshadow /.hushlogin lastlog
  • 23. /etc/motd >>> “Message of the day” /var/spool/mail /bin/bash /etc/profile Definition of ‘PATH’ Hostname Variable HISTSIZE (Cmd history limit) /etc/inputrc /etc/profile.d/*.sh After Login , you can run any scripts from this location automatically.
  • 24. /etc/bashrc umask PS1 >>> Variable for Prompt. Global User settings can be done at /etc/profile and /etc/bashrc This file is for respective user. You can set umask /root/. bashrc at individual level. /root/. bashrc_profile In this case ‘root’ is considered to /root/. bash_logout be the user.
  • 25. END OF BOOT PROCESS THANK YOU