Sei sulla pagina 1di 7

1

1
Boot Phases

BIOS Initialization
Performs first POST
Hardware Boot If all H/W connectivity is correct gives a healthy beep.
Boot Strap Find s the device from where to boot :-
- Floppy
- CDrom
Boot Loader - Harddisk

Kernel

Init

Login Screen

2
Boot Phases

Hardware Boot
Active Partition 2 Bytes

Partition Information 64 Bytes


Boot Loader
Boot Loader Initialization - Grub

Kernel
Stage 1 Stage 2

Sector of kernel - vmlinuz


Stage 2 Initrd....img
Init

Login Screen

3
Boot Phases

Hardware Boot

Boot Loader

Kernel initializes the devices


Kernel It mounts the root file system (/)
It start first process init process (/sbin/init)

Init

Login Screen

4
Boot Phases

Hardware Boot

Boot Loader

Kernel

Init reads /etc/inittab


This file contains what programs or services should
Init
be run at different run levels :

init 0 shutdown
init 1 single user mode
Login Screen init 2 multiuser mode + only text + No support for NFS
init 3 multiuser mode + only text + Full Support
for all services
init 4 (unused)
init 5 multiuser mode + text mode+ GUI +
Fullsupport for all services
init 6 restart or reboot 5

5
Boot Phases

Hardware Boot

Boot Loader

Kernel

Init

Login Screen Local host login :

6
To Manage Services

To
Todisplay
displaystatus
statusofof all
allservices
services
[root@comp1 ~]#chkconfig
[root@comp1 ~]#chkconfig --list
--list

To
Todisplay
displaystatus
statusof
of particular
particularservice
service
[root@comp1
[root@comp1~]#chkconfig
~]#chkconfig --list
--listnetwork
network

To
Tochange
changeservices
servicesat
atcertain
certainRunlevel
Runlevel
[root@comp1
[root@comp1~]#chkconfig
~]#chkconfig --level
--level2345
2345 <service>
<service><on/off>
<on/off>

To
Tostart
start//stop
stopany
anyservice
service temporarily
temporarily
[root@comp1
[root@comp1~]#service
~]#service <service
<servicename>
name> <start/stop/restart>
<start/stop/restart>
7

Potrebbero piacerti anche