SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 10 | Oct 2018 www.irjet.net p-ISSN: 2395-0072
© 2018, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 185
Orchestration of Operating System Start-up
Gavine Kanakadurga Santan
M.Tech, Senior Systems Engineer, Atos Global IT Services, Bangalore, India
------------------------------------------------------------------------***-------------------------------------------------------------------------
ABSTRACT: - BIOS handing over the process to handle
Operating system booting to another entity is same in all
operating systems architectures. But how the software
entities are handling processes to bring up the Operating
system is such an interesting topic and discussing all and
all around processes to get a complete mechanism of
Operating system booting. Here mainly concentrating on
UNIX based Operating system booting process by
comparing both the versions of 6 & 7. In both 6 & 7 OS
booting initiated when we power on the machine then
BIOS wakes up and it informs the MBR (Master Boot
Record) to handle the remaining processes. MBR the
sensitive and first partition in the primary/bootable
device and MBR have internally three major partitions
i.e. IPL (Initial Program Loader), PTI (Partitioning Table
Information) and VC (Validation Check). Once MBR is
fine then it handover the process to black screen i.e.
GRUB (Grand Unified Boot Loader), GRUB knows about
all the kernels information and it takes the responsibility
to load the preferred kernel. Kernel which we called as
heart of the operating system, once the process is
handing over to the kernel it brings all the resources and
services alive in the machine. Finally INIT in 6 &
SYSTEMD in 7 are parents of all the processes and play a
key role to handle the resources. This is what we know
but once we dig into deep of this booting process we can
understand how beautiful it is.
1. INTRODUCTION:-
This Paper mainly focused on how operating system is
loading through various processes. Operating system is
the platform where all the programs come together to
perform computational job. Operating systems do not
directly work with hardware but it works with kernel to
complete the tasks smoothly. Kernel directly interacts
with the hardware to allocate the memory space to
execute the tasks. Once task has been completed again
control came to the operating system level, So Operating
system is the user interface which acts as platform for
human to execute computational tasks. We have to
understand the operating system working principle first
we have to know operating system loads into the
memory. Here mainly focusing on UNIX based operating
systems start up.
2. INITIAL STAGE:-
System memory is empty when we turn on PC, no
processing of data and nothing to execute but
components should know where to look for it. So BIOS
manufacturers developed their code to always start
executing at the same place i.e. reset vector. Reset vector
is the default location a central processing unit will go to
find the first instruction, it points to the address of the
instructions to execute and the address is in non-volatile
memory. But these details are not such enough; we have
to look into the hardware level at Microcontrollers to
understand the clear process of booting. Microcontroller
starts works when we just power on the system, once the
power is balanced then microcontroller to the reset
vector for the location where the start-up instruction can
be found.
Figure: Reset vector location
Microcontroller loads the address where the instructions
stored i.e. reset vector and the instructions are loaded
and executed by the CPU. First vector table (register)
information which is stored in flash memory is copied to
RAM. One reason for copying the vector table
information to RAM is that, RAM executes faster than the
flash and this helps to decrease the latency of any
interrupt calls within the system.
Date section of the linker handles all the handover
processes. Once data is copied into RAM (.data Section),
data initialization would be static & global variables.
Along with the .data section .bss section is also copied
and this section contains the variables that are initialized
to zero. Any of the RAM functions will copy from flash to
RAM with the microcontrollers at last. This entire
process is called as “C Copy Down". Proper setup is only
possible by performing this "copy down". Now the
process is handover to the MBR which we called as
Master Boot record and below BIOS setup decides the
first boot device as hard disk.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 10 | Oct 2018 www.irjet.net p-ISSN: 2395-0072
© 2018, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 186
Figure: Hard disk is selected as first boot device at
BIOS level.
3. MASTER BOOT RECORD (MBR):-
Consistent "Starting Point" should have in every hard
disk where all the key information stored about the disk
such as number of partitions and type of file systems
such like to load the operating system, BIOS has to load
the initial boot program in some location and that place
where all booting information is stored is called Master
boot sector, MBR or boot sector.
The most important part MBR exists on the first sector
(0*00) in the HDD. It boots the device and loads the
operating system in to memory. While installing
operating system on the hardware this disk data
structure will create once disk is partitioned. Disk
partition is referred as partitioning the single hard drive
into many logical drives and the partition is a contiguous
set of blocks on the drive that treated as independent
disk. Partitioning helps data to encapsulate since file
system corruption is limited to that partition only. We
can't find MBR in non-partitioned storage devices like
floppy disk. As told initially MBR consists of the partition
table of the disk and finds the active disk which is
referred as active partition. Information related to the
type and size of the partitions such like information
holded by the MBR. Current standard size of this MBR
disk partition is 512 bytes.
Physically it is located in in Sector 0; first sector which is
512 bytes long. Bootstrap information, partitioning table
information and validation check or disk signatures are
main parts of MBR. Bootstrap as boot loader, it is an
executable code which is responsible to find the active
partition table and to catch the first sector in active
partition. After scanned the active partition a copy of the
boot sector will be loaded to the memory to start the
booting process. If MBR fails to finish its functions then
different types of errors will be reported. BIOS can
restore the MBR to the first block location on the hard
disk from the MBR Image. BIOS use different methods to
handle MBR data corruption in the situation of invalid
MBR’s.
Next 64 bytes data structure is partition table which
contains all information of the hard disk partitions. To
find the active partition table has to analyse. MBR allows
only one active partition for booting process. If more
than one active partition exists then MBR will return an
error message. Active partition loads files into memory.
Validation check or boot record signature is located at
the end of the MBR that can be also named as Magic
Number. It contains only two bytes of memory which is
required by the BIOS during booting.
Figure: - Master Boot Record
MBR is to extract required data from HDD. In case of any
duplicate or malicious MBR exists that overwrite the
basic original MBR information and MBR is essential part
of the computer which locates first sector of the disk and
controls booting process.
4. GRAND UNIFIED BOOT LOADER (GRUB):-
GRUB is a software program which lists out all the
Operating systems and Kernels available in the
computer. Once know about the primary partition GRUB
loads into the memory which tries to load the operating
system with the help of initrd which is responsible to
keep RAM disk for the loading Operating system. One of
the most important functions of the grub is to load the
kernel into memory. Next portion of the booting is
controlled by the GRUB which provides interactive
interface to choose which OS or the version of the kernel
within an existing OS. Currently there are two grub
versions available i.e. GRUB & GRUB2. We can customize
grub configurations by changing the grub configuration
file which mainly locates in /etc/grub/; we have to over
look into it.
Figure: Grub Program listing out all the available OS
Versions in the Computer
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 10 | Oct 2018 www.irjet.net p-ISSN: 2395-0072
© 2018, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 187
The first two values specifying what’s going to be first
and what the default Operating system is and Kernel
when we are booting which is identified by the value
“zero”. Showing two kernels of the same Operating
system. Let’s see overview of GRUB configuration file,
Figure: Grub Configuration file
default: Which defines which Operating System or
Kernel to be load automatically.
Timeout: Time which we get all the OS & Kernel
information in the black screen. Once we exceed this
time operating system loads automatically which defined
at default option.
Hiddenmenu: It is not showing complete menu just
countdown.
Root (hd0, 0): Location of the hard disk where kernel is
located.
Kernel: Details of the Kernel.
Initrd: Initial RAM Disk is initial root file system which is
mounted before the original root file system available.
Root=/dev/mapper/vg_virtualrhel-lv_root: Root
partition location.
rd_LVM_LV: Identifies and activates the logical volumes.
rhgb quite: hides the boot messages by default.
Just have a look into the figure which is listing two
versions of the same operating system at grub level.
Default is listed as 0, so first operating system will load
into the memory once booting crosses the GRUB level. If
we want to change the default OS then we have to make
that default value as 1 or else than depending on how
many operating systems available in our machine.
Basically next versions of the operating system
overcome the problem of the previous problems and we
can achieve new releases features in already installed OS
by installing new release of the kernel.
6. KERNEL:-
Once Grub loads the Kernel in to Memory initrd acts as
temporary mount for root filesystem. From here Kernel
takes the responsibility to bring up the Operating
system. Kernel is the main component and called it as
heart of the operating system which acts as interface
between OS applications and hardware to schedule the
jobs and to allocate the memory space for the jobs
execution. Kernel is responsible for Process, Device,
Memory management, interrupt handling and I/O
Communication. Kernel executes the /sbin/init script
which is the first process and PID 1. Init (Initialization)
program brings up all the necessary services and looks
into /etc/inittab file to bring up the operating system in
defaults run level. There are 6 run levels which describe
operating system states 0, 1, 2,3,4,5 & 6.
Run level Description
0 Halt
1 Single User Mode
2 Multi User Mode without NFS
3 Multi user mode with NFS
4 Unused Mode
5 Graphical Mode X11
6 Reboot
From all the above listed run levels; single user mode is
the power full mode where we can fix the issues more
efficiently than the other modes. We can treat it as
console mode as by CLI. We can fix the maximum issues
of the operating from this mode.
Figure: - Kernel
7. DIFFERENTIATING RHEL 6 & 7 START UP:-
Both RHEL 6 & 7 start up’s are likely similar but we have
to know few more things about what are the better
features in RHEL 7 than RHEL 6. Kernel was upgraded in
RHEL 7 and it is using systemd as initial process which is
responsible to bring up all the remaining processes and
we can’t get the default run level from inittab file, we
have to look into “/etc/systemd/system/default.target”
for it. Memory management is extremely nice in RHEL 7
operating system than the RHEL 6.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 10 | Oct 2018 www.irjet.net p-ISSN: 2395-0072
© 2018, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 188
8. CONCLUSION:-
All essential processes have been covered in this paper
and sequence of the start-up is likely same for all the
UNIX versions. In every version or release these
processes handling mechanism have been changes to
make the memory management more efficiently than the
previous releases. GRUB2 is introduced in RHEL 7 &
SUSE operating systems; it has more capability to handle
the processes very smoothly. I will look into GRUB2
features and its mechanism how it handles the processes
more efficiently in my next paper.
TERMS:-
Microcontroller – It is an integrated circuit design to
perform the specific operation which includes processor,
memory (RAM), & IO peripherals in single circuit chip.
Boot Strap – It is program which initiates OS Start Up.
MBR – Primary partition in boot device.
GRUB – Software program which know all available
operating systems in the machine.
INIT – First process in RHEL 6 Operating system, its PID
is 1.
SYSTEMD – First process in RHEL 7 Operating system, its
PID is 1.
REFERENCES:-
No references for this, I got all this information from my
industrial experience. I have been collected suitable
figures from internet.
G.K. Santan was born in Andhrapradesh,
India in 1991.He received B.tech degree
in Computer Science and Engineering
from JNTU Hyderabad in 2012 and
M.tech in Computer Networks and
securities from KL University in 2014.
On the same year he started his career
as GNOC Engineer in JDA Software Pvt Ltd, Bangalore,
India, to Manage Global Data centre environments. He is
expertise in UNIX based operating systems, Physical
Machines Configurations, VMWare, KVM, and Scripting
along with the Automation. He is certified as Redhat
system administrator & Redhat Virtualization
Administrator. After he moved to Atos Global IT
services, Bangalore, India, as senior systems engineer.
BIOGRAPHY:-

More Related Content

PPTX
Boot process -test
Hari Shankar
 
PPTX
Booting process by Amar singh
Amar Singh
 
DOCX
Windows booting
girish1993
 
PPTX
Booting and Start-up Sequence
Trinity Dwarka
 
PPTX
System Booting Process overview
RajKumar Rampelli
 
PDF
Understanding The Boot Process
Dom Cimafranca
 
PPTX
Booting of Computer System
Arzath Areeff
 
PPTX
booting steps of a computer
Anusha Babooa
 
Boot process -test
Hari Shankar
 
Booting process by Amar singh
Amar Singh
 
Windows booting
girish1993
 
Booting and Start-up Sequence
Trinity Dwarka
 
System Booting Process overview
RajKumar Rampelli
 
Understanding The Boot Process
Dom Cimafranca
 
Booting of Computer System
Arzath Areeff
 
booting steps of a computer
Anusha Babooa
 

What's hot (20)

PPTX
Ch 2
Kashish Handa
 
PPTX
Writing Character driver (loadable module) in linux
RajKumar Rampelli
 
PPTX
Linux booting process!!
sourav verma
 
PPTX
Boot process
Salman Memon
 
PPTX
bios booting process
Taimoor Ashraf
 
PPTX
Bootloader and bootloading
Arpita Gupta
 
PDF
Booting & shut down,
Bhushan Pawar -Java Trainer
 
ODP
5. boot process
Marian Marinov
 
PPTX
Code4vn - Linux day - linux boot process
Cường Nguyễn
 
PPT
boot
Lalit Mohan
 
DOCX
6 stages of linux boot process
Teja Bheemanapally
 
PDF
Operating Systems (slides)
wx672
 
PPTX
Structure of processes ppt
Yojana Nanaware
 
PDF
Know thyubuntu
chkmao
 
PPT
Unix fundamentals
Bimal Jain
 
PDF
Ms dos boot process
Zahra Sadeghi
 
PPTX
The Boot Process
Amir Villas
 
PPTX
Os solaris memory management
Tech_MX
 
Writing Character driver (loadable module) in linux
RajKumar Rampelli
 
Linux booting process!!
sourav verma
 
Boot process
Salman Memon
 
bios booting process
Taimoor Ashraf
 
Bootloader and bootloading
Arpita Gupta
 
Booting & shut down,
Bhushan Pawar -Java Trainer
 
5. boot process
Marian Marinov
 
Code4vn - Linux day - linux boot process
Cường Nguyễn
 
6 stages of linux boot process
Teja Bheemanapally
 
Operating Systems (slides)
wx672
 
Structure of processes ppt
Yojana Nanaware
 
Know thyubuntu
chkmao
 
Unix fundamentals
Bimal Jain
 
Ms dos boot process
Zahra Sadeghi
 
The Boot Process
Amir Villas
 
Os solaris memory management
Tech_MX
 
Ad

Similar to IRJET- Orchestration of Operating System Start-Up (20)

PDF
linux-bsd-init.pdf jihfkfopsnbbd jdifkfo kfogo
homedeliverymayorist
 
PPT
BOOTING.ppt
TripleRainbow
 
PPTX
motherboard.pptx
RaviRaval36
 
PPT
OS_Intro_Chap_1.ppt
DrAmarNathDhebla
 
DOCX
bios.docx
SUBIRKUMARPANDA1
 
PPTX
COC. 1 COMPUTER SYSTEM SPECIFICATIONS-BIOS.pptx
MaryGraceManaegHered
 
PPTX
An Insight into the Linux Booting Process
Hardeep Bhurji
 
PPTX
1 booting process and software based solution
Urwa Shanza
 
PDF
Computer Hardware ,Booting Processes-1.pdf
frp60658
 
PDF
IT Essentials (Version 7.0) - ITE Chapter 11 Exam Answers
ITExamAnswers.net
 
PPTX
Module_2_IT_ERA.pptx
JenloDiamse
 
PDF
operating system anna university Unit 4 Part 2.pdf
iamsyril21
 
PDF
1. What is the value of requiring the OS to provide status informati.pdf
udit652068
 
PDF
Grub2 Booting Process
Mike Wang
 
DOCX
Boot loader
Aalay Kapadia
 
PPT
Linux Booting Steps
Anando Kumar Paul
 
PPTX
Bootloaders (U-Boot)
Omkar Rane
 
PPTX
CSA-113-personal-computeasdaasdasdasr.pptx
marcxaaron
 
PPT
3996234.ppt
KdpKumar
 
PPTX
Structure of an operating system.pptx
MSivani
 
linux-bsd-init.pdf jihfkfopsnbbd jdifkfo kfogo
homedeliverymayorist
 
BOOTING.ppt
TripleRainbow
 
motherboard.pptx
RaviRaval36
 
OS_Intro_Chap_1.ppt
DrAmarNathDhebla
 
bios.docx
SUBIRKUMARPANDA1
 
COC. 1 COMPUTER SYSTEM SPECIFICATIONS-BIOS.pptx
MaryGraceManaegHered
 
An Insight into the Linux Booting Process
Hardeep Bhurji
 
1 booting process and software based solution
Urwa Shanza
 
Computer Hardware ,Booting Processes-1.pdf
frp60658
 
IT Essentials (Version 7.0) - ITE Chapter 11 Exam Answers
ITExamAnswers.net
 
Module_2_IT_ERA.pptx
JenloDiamse
 
operating system anna university Unit 4 Part 2.pdf
iamsyril21
 
1. What is the value of requiring the OS to provide status informati.pdf
udit652068
 
Grub2 Booting Process
Mike Wang
 
Boot loader
Aalay Kapadia
 
Linux Booting Steps
Anando Kumar Paul
 
Bootloaders (U-Boot)
Omkar Rane
 
CSA-113-personal-computeasdaasdasdasr.pptx
marcxaaron
 
3996234.ppt
KdpKumar
 
Structure of an operating system.pptx
MSivani
 
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
PDF
Kiona – A Smart Society Automation Project
IRJET Journal
 
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
PDF
Breast Cancer Detection using Computer Vision
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 

Recently uploaded (20)

PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PPT
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PPTX
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
PDF
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PDF
All chapters of Strength of materials.ppt
girmabiniyam1234
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Zero Carbon Building Performance standard
BassemOsman1
 
All chapters of Strength of materials.ppt
girmabiniyam1234
 

IRJET- Orchestration of Operating System Start-Up

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 05 Issue: 10 | Oct 2018 www.irjet.net p-ISSN: 2395-0072 © 2018, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 185 Orchestration of Operating System Start-up Gavine Kanakadurga Santan M.Tech, Senior Systems Engineer, Atos Global IT Services, Bangalore, India ------------------------------------------------------------------------***------------------------------------------------------------------------- ABSTRACT: - BIOS handing over the process to handle Operating system booting to another entity is same in all operating systems architectures. But how the software entities are handling processes to bring up the Operating system is such an interesting topic and discussing all and all around processes to get a complete mechanism of Operating system booting. Here mainly concentrating on UNIX based Operating system booting process by comparing both the versions of 6 & 7. In both 6 & 7 OS booting initiated when we power on the machine then BIOS wakes up and it informs the MBR (Master Boot Record) to handle the remaining processes. MBR the sensitive and first partition in the primary/bootable device and MBR have internally three major partitions i.e. IPL (Initial Program Loader), PTI (Partitioning Table Information) and VC (Validation Check). Once MBR is fine then it handover the process to black screen i.e. GRUB (Grand Unified Boot Loader), GRUB knows about all the kernels information and it takes the responsibility to load the preferred kernel. Kernel which we called as heart of the operating system, once the process is handing over to the kernel it brings all the resources and services alive in the machine. Finally INIT in 6 & SYSTEMD in 7 are parents of all the processes and play a key role to handle the resources. This is what we know but once we dig into deep of this booting process we can understand how beautiful it is. 1. INTRODUCTION:- This Paper mainly focused on how operating system is loading through various processes. Operating system is the platform where all the programs come together to perform computational job. Operating systems do not directly work with hardware but it works with kernel to complete the tasks smoothly. Kernel directly interacts with the hardware to allocate the memory space to execute the tasks. Once task has been completed again control came to the operating system level, So Operating system is the user interface which acts as platform for human to execute computational tasks. We have to understand the operating system working principle first we have to know operating system loads into the memory. Here mainly focusing on UNIX based operating systems start up. 2. INITIAL STAGE:- System memory is empty when we turn on PC, no processing of data and nothing to execute but components should know where to look for it. So BIOS manufacturers developed their code to always start executing at the same place i.e. reset vector. Reset vector is the default location a central processing unit will go to find the first instruction, it points to the address of the instructions to execute and the address is in non-volatile memory. But these details are not such enough; we have to look into the hardware level at Microcontrollers to understand the clear process of booting. Microcontroller starts works when we just power on the system, once the power is balanced then microcontroller to the reset vector for the location where the start-up instruction can be found. Figure: Reset vector location Microcontroller loads the address where the instructions stored i.e. reset vector and the instructions are loaded and executed by the CPU. First vector table (register) information which is stored in flash memory is copied to RAM. One reason for copying the vector table information to RAM is that, RAM executes faster than the flash and this helps to decrease the latency of any interrupt calls within the system. Date section of the linker handles all the handover processes. Once data is copied into RAM (.data Section), data initialization would be static & global variables. Along with the .data section .bss section is also copied and this section contains the variables that are initialized to zero. Any of the RAM functions will copy from flash to RAM with the microcontrollers at last. This entire process is called as “C Copy Down". Proper setup is only possible by performing this "copy down". Now the process is handover to the MBR which we called as Master Boot record and below BIOS setup decides the first boot device as hard disk.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 05 Issue: 10 | Oct 2018 www.irjet.net p-ISSN: 2395-0072 © 2018, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 186 Figure: Hard disk is selected as first boot device at BIOS level. 3. MASTER BOOT RECORD (MBR):- Consistent "Starting Point" should have in every hard disk where all the key information stored about the disk such as number of partitions and type of file systems such like to load the operating system, BIOS has to load the initial boot program in some location and that place where all booting information is stored is called Master boot sector, MBR or boot sector. The most important part MBR exists on the first sector (0*00) in the HDD. It boots the device and loads the operating system in to memory. While installing operating system on the hardware this disk data structure will create once disk is partitioned. Disk partition is referred as partitioning the single hard drive into many logical drives and the partition is a contiguous set of blocks on the drive that treated as independent disk. Partitioning helps data to encapsulate since file system corruption is limited to that partition only. We can't find MBR in non-partitioned storage devices like floppy disk. As told initially MBR consists of the partition table of the disk and finds the active disk which is referred as active partition. Information related to the type and size of the partitions such like information holded by the MBR. Current standard size of this MBR disk partition is 512 bytes. Physically it is located in in Sector 0; first sector which is 512 bytes long. Bootstrap information, partitioning table information and validation check or disk signatures are main parts of MBR. Bootstrap as boot loader, it is an executable code which is responsible to find the active partition table and to catch the first sector in active partition. After scanned the active partition a copy of the boot sector will be loaded to the memory to start the booting process. If MBR fails to finish its functions then different types of errors will be reported. BIOS can restore the MBR to the first block location on the hard disk from the MBR Image. BIOS use different methods to handle MBR data corruption in the situation of invalid MBR’s. Next 64 bytes data structure is partition table which contains all information of the hard disk partitions. To find the active partition table has to analyse. MBR allows only one active partition for booting process. If more than one active partition exists then MBR will return an error message. Active partition loads files into memory. Validation check or boot record signature is located at the end of the MBR that can be also named as Magic Number. It contains only two bytes of memory which is required by the BIOS during booting. Figure: - Master Boot Record MBR is to extract required data from HDD. In case of any duplicate or malicious MBR exists that overwrite the basic original MBR information and MBR is essential part of the computer which locates first sector of the disk and controls booting process. 4. GRAND UNIFIED BOOT LOADER (GRUB):- GRUB is a software program which lists out all the Operating systems and Kernels available in the computer. Once know about the primary partition GRUB loads into the memory which tries to load the operating system with the help of initrd which is responsible to keep RAM disk for the loading Operating system. One of the most important functions of the grub is to load the kernel into memory. Next portion of the booting is controlled by the GRUB which provides interactive interface to choose which OS or the version of the kernel within an existing OS. Currently there are two grub versions available i.e. GRUB & GRUB2. We can customize grub configurations by changing the grub configuration file which mainly locates in /etc/grub/; we have to over look into it. Figure: Grub Program listing out all the available OS Versions in the Computer
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 05 Issue: 10 | Oct 2018 www.irjet.net p-ISSN: 2395-0072 © 2018, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 187 The first two values specifying what’s going to be first and what the default Operating system is and Kernel when we are booting which is identified by the value “zero”. Showing two kernels of the same Operating system. Let’s see overview of GRUB configuration file, Figure: Grub Configuration file default: Which defines which Operating System or Kernel to be load automatically. Timeout: Time which we get all the OS & Kernel information in the black screen. Once we exceed this time operating system loads automatically which defined at default option. Hiddenmenu: It is not showing complete menu just countdown. Root (hd0, 0): Location of the hard disk where kernel is located. Kernel: Details of the Kernel. Initrd: Initial RAM Disk is initial root file system which is mounted before the original root file system available. Root=/dev/mapper/vg_virtualrhel-lv_root: Root partition location. rd_LVM_LV: Identifies and activates the logical volumes. rhgb quite: hides the boot messages by default. Just have a look into the figure which is listing two versions of the same operating system at grub level. Default is listed as 0, so first operating system will load into the memory once booting crosses the GRUB level. If we want to change the default OS then we have to make that default value as 1 or else than depending on how many operating systems available in our machine. Basically next versions of the operating system overcome the problem of the previous problems and we can achieve new releases features in already installed OS by installing new release of the kernel. 6. KERNEL:- Once Grub loads the Kernel in to Memory initrd acts as temporary mount for root filesystem. From here Kernel takes the responsibility to bring up the Operating system. Kernel is the main component and called it as heart of the operating system which acts as interface between OS applications and hardware to schedule the jobs and to allocate the memory space for the jobs execution. Kernel is responsible for Process, Device, Memory management, interrupt handling and I/O Communication. Kernel executes the /sbin/init script which is the first process and PID 1. Init (Initialization) program brings up all the necessary services and looks into /etc/inittab file to bring up the operating system in defaults run level. There are 6 run levels which describe operating system states 0, 1, 2,3,4,5 & 6. Run level Description 0 Halt 1 Single User Mode 2 Multi User Mode without NFS 3 Multi user mode with NFS 4 Unused Mode 5 Graphical Mode X11 6 Reboot From all the above listed run levels; single user mode is the power full mode where we can fix the issues more efficiently than the other modes. We can treat it as console mode as by CLI. We can fix the maximum issues of the operating from this mode. Figure: - Kernel 7. DIFFERENTIATING RHEL 6 & 7 START UP:- Both RHEL 6 & 7 start up’s are likely similar but we have to know few more things about what are the better features in RHEL 7 than RHEL 6. Kernel was upgraded in RHEL 7 and it is using systemd as initial process which is responsible to bring up all the remaining processes and we can’t get the default run level from inittab file, we have to look into “/etc/systemd/system/default.target” for it. Memory management is extremely nice in RHEL 7 operating system than the RHEL 6.
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 05 Issue: 10 | Oct 2018 www.irjet.net p-ISSN: 2395-0072 © 2018, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 188 8. CONCLUSION:- All essential processes have been covered in this paper and sequence of the start-up is likely same for all the UNIX versions. In every version or release these processes handling mechanism have been changes to make the memory management more efficiently than the previous releases. GRUB2 is introduced in RHEL 7 & SUSE operating systems; it has more capability to handle the processes very smoothly. I will look into GRUB2 features and its mechanism how it handles the processes more efficiently in my next paper. TERMS:- Microcontroller – It is an integrated circuit design to perform the specific operation which includes processor, memory (RAM), & IO peripherals in single circuit chip. Boot Strap – It is program which initiates OS Start Up. MBR – Primary partition in boot device. GRUB – Software program which know all available operating systems in the machine. INIT – First process in RHEL 6 Operating system, its PID is 1. SYSTEMD – First process in RHEL 7 Operating system, its PID is 1. REFERENCES:- No references for this, I got all this information from my industrial experience. I have been collected suitable figures from internet. G.K. Santan was born in Andhrapradesh, India in 1991.He received B.tech degree in Computer Science and Engineering from JNTU Hyderabad in 2012 and M.tech in Computer Networks and securities from KL University in 2014. On the same year he started his career as GNOC Engineer in JDA Software Pvt Ltd, Bangalore, India, to Manage Global Data centre environments. He is expertise in UNIX based operating systems, Physical Machines Configurations, VMWare, KVM, and Scripting along with the Automation. He is certified as Redhat system administrator & Redhat Virtualization Administrator. After he moved to Atos Global IT services, Bangalore, India, as senior systems engineer. BIOGRAPHY:-