Day 2 Flashcards
Linux Boot Process
BIOS, MBR,GRUB, Kernel, Init, Runlevel
GRUB
Initial boot software, can make changes to the system during boot like changing boot entries, selecting different kernels, and modifying the initial RAM disk
/etc/inittab
Contains process that are spawned by init based on the run level
/sbin/init
The very first process that is spawned by the kernel
inittab - sysinit
Used for initializing the system
inittab - respawn
Ensures the process restarts on termination
inittab - boot
Only runs the first time that the inittab is read
inittab - off
Kills a running process
inittab - wait
Represents the termination status (terminated or suspended)
inittab - initdefault
Runs the default run level for the system
Solaris default run level
Run level 3
Linux default run level
Run level 5
Run Level 0
Halt mode - All processes terminated; orderly halt
Run Level 1
Single User mode - used to perform administrative tasks on the system
Run Level 2
Multi User mode - Allows users to access the system; limited network resources
Run Level 3
Full Multi-user mode - Same as multi-user but includes network services
Run Level 4
User-defined mode - Not specified by the system. Universally defined and customizable
Run Level 5
X11 - Default; multi-user, network services, and x-windows display manager
Run Level 6
Reboot mode - All processes terminated; system gracefully rebooted
/etc/rc*.d
The directory for each run level
who -r
Shows the current run level status
/etc/init.d
Directory that stores master copies of all of the rc scripts (Start with K for kill and S for start)
chkconfig
lists current startup information and changes startup information for services