Linux Boot Process / Optimizing Boot Performance/shaare/F8MFtg
Linux Boot Process → Older Version
-
BIOS→ Basic Input / Output System- executes
MBR
- executes
-
MBR→ Master Boot Record- executes
GRUB
- executes
-
GRUB→ Grand Unified Bootloader- executes kernel
-
KERNEL- kernel executes
/sbin/init - mount the root file system
- kernel executes
-
INIT- init executes run level programs
- initial RAM disk → contains drivers
-
RUN LEVEL- run level programs executed from
/etc/rc.d/rc*.d/
- run level programs executed from
Linux Boot Process → CentOS 7, 8, 9
-
BIOS→MBR→GRUB 2 -
/boot/grub2/grub.cfg -
KERNEL- load drivers from
initrd.img - start the first OS process (
systemd)
- load drivers from
-
SYSTEMD= system daemon- read
/etc/systemd/system/default.target
- read
systemd-analyze → Optimizing Boot Performance
-
Understand how long the Linux system takes to boot by:
- kernel
- service
initrd
-
initrd→ initialize system hardware -
systemd-analyze blame- sort by time all service
Message of the Day → Message at Login
-
nano /etc/motd -
Customize:
touch /etc/profile.d/motd.sh
-
In
/etc/ssh/sshd_configPrintMotd no
-
systemctl restart sshd.service
(97)