SlideShare una empresa de Scribd logo
1 de 17
Descargar para leer sin conexión
Chapter 11Chapter 11
System Boot UpSystem Boot Up
Ref. Pge. 223
Boot Up ProcedureBoot Up Procedure
●
BlOSBlOS
– To select a boot deviceTo select a boot device
●
LoaderLoader
– Provides menu selectionProvides menu selection
– Loads kernel or other loadersLoads kernel or other loaders
●
Kernel + initrdKernel + initrd
– The operating systemThe operating system
– Mounts the root file systemMounts the root file system
●
initinit
– The first running process of systemThe first running process of system
Ref. Pge. 239
Linux LoaderLinux Loader
●
LILOLILO
– The LInux LOaderThe LInux LOader
– Depends on map strictlyDepends on map strictly
●
GRUBGRUB
– Grand Unified BootloaderGrand Unified Bootloader
– Supports kinds of file systemSupports kinds of file system
– Interactive with userInteractive with user
●
GRUB2GRUB2
– Second version of GRUBSecond version of GRUB
– Big changing in configurationBig changing in configuration
Ref. Pge. 228
GRUB StagesGRUB Stages
●
Stage 1Stage 1
– Stored in MBRStored in MBR
– Loads stage 1.5Loads stage 1.5
●
Stage 1.5Stage 1.5
– Stored in disk:Stored in disk: /boot/grub/*_stage1_5/boot/grub/*_stage1_5
– Reads and loads configuration filesReads and loads configuration files
●
Stage 2Stage 2
– Provides menu interfaceProvides menu interface
– Shell accessibleShell accessible
– Loads kernel with parametersLoads kernel with parameters
Ref. Pge. 223
GRUB ConfigurationGRUB Configuration
●
/boot/grub/menu.lst/boot/grub/menu.lst
default=0default=0
timeout=5timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gzsplashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenuhiddenmenu
title CentOS (2.6.18­371.3.1.el5.centos.plus)title CentOS (2.6.18­371.3.1.el5.centos.plus)
                root (hd0,0)root (hd0,0)
                kernel /boot/vmlinuz­2.6.18­kernel /boot/vmlinuz­2.6.18­
371.3.1.el5.centos.plus ro root=LABEL=/ rhgb quiet371.3.1.el5.centos.plus ro root=LABEL=/ rhgb quiet
                initrd /boot/initrd­2.6.18­initrd /boot/initrd­2.6.18­
238.12.1.el5.centos.plus.img238.12.1.el5.centos.plus.img
title CentOS (2.6.18­194.32.1.el5)title CentOS (2.6.18­194.32.1.el5)
                root (hd0,0)root (hd0,0)
                kernel /boot/vmlinuz­2.6.18­194.el5 ro kernel /boot/vmlinuz­2.6.18­194.el5 ro 
root=LABEL=/ rhgb quietroot=LABEL=/ rhgb quiet
                initrd /boot/initrd­2.6.18­194.el5.imginitrd /boot/initrd­2.6.18­194.el5.img
Ref. Pge. 229
GRUB InstallGRUB Install
●
grub­install <disk>grub­install <disk>
– Installs 1st stage into MBRInstalls 1st stage into MBR
– No need to run if configuration file is changedNo need to run if configuration file is changed
Ref. Pge. 229
About GRUB 2About GRUB 2
●
Module files:Module files:
– /boot/grub/*.mod/boot/grub/*.mod
●
Main configuration fileMain configuration file
/boot/grub/grub.cfg/boot/grub/grub.cfg
– Updated by runningUpdated by running update­grubupdate­grub
– Never edit this file manually!Never edit this file manually!
Ref. Pge. 233
Change setting of GRUB 2Change setting of GRUB 2
●
Generic settingsGeneric settings
/etc/default/grub/etc/default/grub
●
Individual settingsIndividual settings
/etc/grub.d/*/etc/grub.d/*
– Script baseScript base
– By order of the staring number on file nameBy order of the staring number on file name
●
Must runMust run grub­updategrub­update to take effectto take effect
Change setting of GRUB 2Change setting of GRUB 2
●
Custom settingsCustom settings
/etc/grub.d/40_custom/etc/grub.d/40_custom
– Add lines at the bottomAdd lines at the bottom
– Similar to GRUB 1:Similar to GRUB 1:
menuentry “My Linux”menuentry “My Linux”
set root=(hd0,0)set root=(hd0,0)
kernel /boot/vmlinuz­2.6.18­194.el5 ro kernel /boot/vmlinuz­2.6.18­194.el5 ro 
root=LABEL=/ rhgb quietroot=LABEL=/ rhgb quiet
initrd /boot/initrd­2.6.18­194.el5.imginitrd /boot/initrd­2.6.18­194.el5.img
Ref. Pge. 234
TheThe initrd/initramfsinitrd/initramfs
●
Helps kernel to access the root fileHelps kernel to access the root file
system with modules built-insystem with modules built-in
●
Ram Disk loaded by loaderRam Disk loaded by loader
kernel
Root
Filesystem
init
Modules...
initramfs
TheThe initinit
●
The first process loaded by kernelThe first process loaded by kernel
●
Reads configuration fileReads configuration file /etc/inittab/etc/inittab
●
Determines runlevel and runDetermines runlevel and run
corresponding services:corresponding services:
– 0 - halt0 - halt
– 1 - single user modes1 - single user modes
– 2 - Multiuser, without NFS2 - Multiuser, without NFS
– 3 - Full multiuser mode3 - Full multiuser mode
– 4 - unused4 - unused
– 5 - X115 - X11
– 6 - reboot6 - reboot
Ref. Pge. 240
Starting ServicesStarting Services
init /etc/inittab
/etc/rc.d/rc.sysinit
/etc/rc.d/rc
/etc/rc.d/rc<RL>.d
Knn*
Snn*
●
Controlled byControlled by initinit
Manually Control ServicesManually Control Services
●
Controlled byControlled by serviceservice command:command:
service <name> <sub_command>service <name> <sub_command>
– Available sub commands:Available sub commands:
●
startstart : start the service: start the service
●
stopstop : stop the service: stop the service
●
restartrestart : restart the service: restart the service
●
reloadreload : reload service configuration: reload service configuration
●
statusstatus : show service current status: show service current status
Ref. Pge. 243
Configure Runlevel ServicesConfigure Runlevel Services
●
UseUse chkconfigchkconfig command:command:
chkconfig ­­list [name]chkconfig ­­list [name]
chkconfig ­­add <name>chkconfig ­­add <name>
chkconfig ­­del <name>chkconfig ­­del <name>
chkconfig [­­level <RL>] <name> <on|off>chkconfig [­­level <RL>] <name> <on|off>
Ref. Pge. 244
Shutting Down SystemShutting Down System
●
Shut down:Shut down:
– shutdownshutdown ­h now ­h now
– halthalt
– poweroffpoweroff
– init 0init 0
●
Reboot:Reboot:
– shutdownshutdown ­r now ­r now
– rebootreboot
– init 6init 6
Ref. Pge. 247
About UpstartAbout Upstart
●
A replacement ofA replacement of initinit andand runlevelrunlevel
●
Better handling on dynamic hardwareBetter handling on dynamic hardware
environmentenvironment
●
Service controlling scripts are locatedService controlling scripts are located
underunder /etc/init//etc/init/ directory anddirectory and
withwith .conf .conf extensionextension
●
Daemons can be interacted byDaemons can be interacted by initctlinitctl
commandcommand
UsingUsing initctlinitctl
●
Communicates and interacts with upstartCommunicates and interacts with upstart
daemon:daemon:
initctl <sub_command>initctl <sub_command>
– Available sub commands:Available sub commands:
●
help help : show help page: show help page
●
list list : show all jobs: show all jobs
●
start name start name : start a job: start a job
●
stop name stop name : stop a job: stop a job
●
restart name restart name : restart a job: restart a job
●
status name status name : show job status: show job status
●
reload name reload name : reload configuration: reload configuration

Más contenido relacionado

La actualidad más candente

2.1.using the shell
2.1.using the shell2.1.using the shell
2.1.using the shell
donv214
 
Common linuxcommandspocketguide07
Common linuxcommandspocketguide07Common linuxcommandspocketguide07
Common linuxcommandspocketguide07
Teja Bheemanapally
 

La actualidad más candente (19)

Chap 19 web
Chap 19 webChap 19 web
Chap 19 web
 
Importance of linux system fundamental in technical documentation reading
Importance of linux system fundamental in technical documentation readingImportance of linux system fundamental in technical documentation reading
Importance of linux system fundamental in technical documentation reading
 
LSA2 - 02 Control Groups
LSA2 - 02   Control GroupsLSA2 - 02   Control Groups
LSA2 - 02 Control Groups
 
Introduction to Modern U-Boot
Introduction to Modern U-BootIntroduction to Modern U-Boot
Introduction to Modern U-Boot
 
LSA2 - 02 Namespaces
LSA2 - 02  NamespacesLSA2 - 02  Namespaces
LSA2 - 02 Namespaces
 
LSA2 - 01 Virtualization with KVM
LSA2 - 01 Virtualization with KVMLSA2 - 01 Virtualization with KVM
LSA2 - 01 Virtualization with KVM
 
2.1.using the shell
2.1.using the shell2.1.using the shell
2.1.using the shell
 
PostgreSQL on EXT4, XFS, BTRFS and ZFS
PostgreSQL on EXT4, XFS, BTRFS and ZFSPostgreSQL on EXT4, XFS, BTRFS and ZFS
PostgreSQL on EXT4, XFS, BTRFS and ZFS
 
Puppet
PuppetPuppet
Puppet
 
A Journey to Boot Linux on Raspberry Pi
A Journey to Boot Linux on Raspberry PiA Journey to Boot Linux on Raspberry Pi
A Journey to Boot Linux on Raspberry Pi
 
BeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream ComponentsBeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream Components
 
BeagleBone Black with Upstream Software
BeagleBone Black with Upstream SoftwareBeagleBone Black with Upstream Software
BeagleBone Black with Upstream Software
 
Common linuxcommandspocketguide07
Common linuxcommandspocketguide07Common linuxcommandspocketguide07
Common linuxcommandspocketguide07
 
Lecture 6 Kernel Debugging + Ports Development
Lecture 6 Kernel Debugging + Ports DevelopmentLecture 6 Kernel Debugging + Ports Development
Lecture 6 Kernel Debugging + Ports Development
 
Linux Common Command
Linux Common CommandLinux Common Command
Linux Common Command
 
HP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan Baljevic
HP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan BaljevicHP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan Baljevic
HP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan Baljevic
 
Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)
 
Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet
 
Go replicator
Go replicatorGo replicator
Go replicator
 

Similar a Linux fundamental - Chap 11 boot

Similar a Linux fundamental - Chap 11 boot (20)

Grub2 and troubleshooting_ol7_boot_problems
Grub2 and troubleshooting_ol7_boot_problemsGrub2 and troubleshooting_ol7_boot_problems
Grub2 and troubleshooting_ol7_boot_problems
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Basis Linux (aan de hand van LPIC-1)
Basis Linux (aan de hand van LPIC-1)Basis Linux (aan de hand van LPIC-1)
Basis Linux (aan de hand van LPIC-1)
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 
Life Preserver - AsiaBSDCon2014
Life Preserver - AsiaBSDCon2014Life Preserver - AsiaBSDCon2014
Life Preserver - AsiaBSDCon2014
 
Grub and dracut ii
Grub and dracut iiGrub and dracut ii
Grub and dracut ii
 
Linux : Booting and runlevels
Linux : Booting and runlevelsLinux : Booting and runlevels
Linux : Booting and runlevels
 
2.5 use rpm and yum package management
2.5 use rpm and yum package management2.5 use rpm and yum package management
2.5 use rpm and yum package management
 
Path to Surfdroid
Path to SurfdroidPath to Surfdroid
Path to Surfdroid
 
Pdf c1t tlawaxb
Pdf c1t tlawaxbPdf c1t tlawaxb
Pdf c1t tlawaxb
 
Front end development gurant
Front end development gurantFront end development gurant
Front end development gurant
 
Linux Booting Process
Linux Booting ProcessLinux Booting Process
Linux Booting Process
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management
 
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratch
 
Linux boot process – explained
Linux boot process – explainedLinux boot process – explained
Linux boot process – explained
 
Linux Kernel Debugging
Linux Kernel DebuggingLinux Kernel Debugging
Linux Kernel Debugging
 
Understanding The Boot Process
Understanding The Boot ProcessUnderstanding The Boot Process
Understanding The Boot Process
 
Lpreservereurobsd2014
Lpreservereurobsd2014Lpreservereurobsd2014
Lpreservereurobsd2014
 

Más de Kenny (netman)

Más de Kenny (netman) (20)

rpi_audio configuration steps
rpi_audio configuration stepsrpi_audio configuration steps
rpi_audio configuration steps
 
Rpi audio
Rpi audioRpi audio
Rpi audio
 
Ha opensuse
Ha opensuseHa opensuse
Ha opensuse
 
Chap 18 net
Chap 18 netChap 18 net
Chap 18 net
 
About the Course
About the CourseAbout the Course
About the Course
 
Linux fundamental - Chap 15 Job Scheduling
Linux fundamental - Chap 15 Job SchedulingLinux fundamental - Chap 15 Job Scheduling
Linux fundamental - Chap 15 Job Scheduling
 
Linux fundamental - Chap 14 shell script
Linux fundamental - Chap 14 shell scriptLinux fundamental - Chap 14 shell script
Linux fundamental - Chap 14 shell script
 
Linux fundamental - Chap 13 account management
Linux fundamental - Chap 13 account managementLinux fundamental - Chap 13 account management
Linux fundamental - Chap 13 account management
 
Linux fundamental - Chap 07 vi
Linux fundamental - Chap 07 viLinux fundamental - Chap 07 vi
Linux fundamental - Chap 07 vi
 
Linux fundamental - Chap 06 regx
Linux fundamental - Chap 06 regxLinux fundamental - Chap 06 regx
Linux fundamental - Chap 06 regx
 
Linux fundamental - Chap 05 filter
Linux fundamental - Chap 05 filterLinux fundamental - Chap 05 filter
Linux fundamental - Chap 05 filter
 
Linux fundamental - Chap 03 file
Linux fundamental - Chap 03 fileLinux fundamental - Chap 03 file
Linux fundamental - Chap 03 file
 
Linux fundamental - Chap 02 perm
Linux fundamental - Chap 02 permLinux fundamental - Chap 02 perm
Linux fundamental - Chap 02 perm
 
Linux fundamental - Chap 00 shell
Linux fundamental - Chap 00 shellLinux fundamental - Chap 00 shell
Linux fundamental - Chap 00 shell
 
Linux system security
Linux system securityLinux system security
Linux system security
 
Linux network monitoring hands-on pratice
Linux network monitoring hands-on praticeLinux network monitoring hands-on pratice
Linux network monitoring hands-on pratice
 
Linux Network Monitoring
Linux Network MonitoringLinux Network Monitoring
Linux Network Monitoring
 
加密應用(GPG)
加密應用(GPG)加密應用(GPG)
加密應用(GPG)
 
金鑰管理 (PKI)
金鑰管理 (PKI)金鑰管理 (PKI)
金鑰管理 (PKI)
 
Linux firewall
Linux firewallLinux firewall
Linux firewall
 

Último

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 

Último (20)

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

Linux fundamental - Chap 11 boot