101.2 Boot the system Flashcards
What does BIOS stand for?
Basic Input/Output System
What function does the BIOS have?
The BIOS on the motherboard checks on all of the hardware and input and output devices after a computer starts.
What does Grub stand for?
GRand Unified Bootloader
What is the name of the boot program (boot loader) in Linux?
The boot program is called GRUB
What does the GRUB do?
The GRUB will look for the section of the hard drive that contains the data needed to boot the operating system.
Who mounts the file system from the hard disk on a computer at start?
The Linux Kernel
What does the Linux Kernel load at computer start?
Initial RAM disk and the file system
What is the order of First initialization in a computer?
BIOS > GRUB > Linux Kernel > Initial RAM Disk > FS > Initial RAM Disk Removal
What does the Linux Kernel load at computer start?
Initial RAM disk and the file system
What are boot logs?
Boot logs are logs that are generated when the computer itself boots up.
Where do boot logs come from?
Boot logs are generated from the Kernel Ring Buffer
Are boot logs volatile? What does that mean?
Yes, they are typically volatile, meaning that once the computer reboots, these logs are gone.
Is dmesg legacy to pull up info from the Kernel Ring Buffer?
Yes, now in most modern distros, systemd has substituted init and it uses journalctl instead of dmesg.
Is dmesg legacy to pull up info from the Kernel Ring Buffer?
Yes, now in most modern distros, systemd has substituted init and it uses journalctl instead of dmesg.
What does journalctl log?
It logs every event that goes on within the computer, including the kernel messages.
What does journalctl mean?
Journal control
what does the dmesg command show?
The dmesg utility shows the Kernel Ring Buffer messages.
What would you usually look for in the messages (dmesg) in the Kernel Ring Buffer?
You will use the Kernel Ring Buffer to see if hardware is getting recognized by the Linux Kernel.
The version of a init that has been used in Linux Systems is based off of the system _________.
V init system (also known as Sys V init).
After the Linux kernel loads up and it brings in the initial RAM disk, it then seeks out an initialization system to hand over control of the computer. What is the first place the kernel looks at?
/sbin/init
What does /sbin/init read once started?
It reads the config settings in /etc/inittab
What does the init process read in the /etc/inittab file?
It reads which run level the system should be operating in.
What is a downside to the classic init system?
Services are started up one after the other
If a particular service is not yet ready, it could hang the system preventing other services from starting.
What are the 3 main locations where you would find a systemd unit file?
- default location : /usr/lib/systemd/system - where unit files are installed by packages
- /run/systemd/system
- /etc/systemd/system (if modification is needed)