04. Linux Basics and System Startup Flashcards
(79 cards)
What are the Linux boot process steps?
- Power on
- Firmware (BIOS or UEFI)
- Boot Device (Master Boot Record - MBR)
- Boot loader
- Kernel
- Initial RAM disk
- /sbin/init (parent process)
- Command shell using getty
- GUI (x window or wayland)
What does BIOS stand for?
Basic Input/Output System
When the computer is powered on, the Basic Input/Output System (BIOS) initializes the hardware, including the screen and keyboard, and tests the main memory.
The Boot Process: BIOS - The First Step, also called POST (Power On Self Test)
What does POST stand for?
Power On Self Test
The __________ is stored on a read-only memory (ROM) chip on the motherboard.
BIOS software
Once the POST is completed, system control passes from the BIOS to __________.
The boot loader
The boot loader is usually stored on one of the (1) _____________, such as a (2)__________ or (3)____________ drive
- System’s storage devices
- hard disk
- SSD
boot sector (for traditional ___________ systems)
BIOS/MBR
The EFI partition (for more recent (Unified) Extensible Firmware Interface or ______).
EFI/UEFI systems
After system control passes from the BIOS to the boot loader, Information on the date, time, and the most important peripherals are loaded from the _______ values.
CMOS
____________________ is a type of semiconductor technology widely used to build integrated circuits (ICs)
Complementary Metal-Oxide-Semiconductor (CMOS)
__________________: A small CMOS memory chip on a computer’s motherboard, powered by a battery, stores the system’s basic configuration settings (BIOS settings), date, and time when the computer is turned off.
Battery-Backed CMOS (CMOS Chip)
The most common Linux boot loaders are:
- GRUB
- ISOLINUX
GRUB stands for?
GRand Unified Boot loader
boot loader for booting from removable media?
ISOLINUX
boot loader for booting on embedded devices/appliances?
DAS U-Boot
Most Linux ___________ can present a user interface for choosing alternative options for booting Linux and even other operating systems that might be installed.
boot loaders
__________ is responsible for loading the kernel image and the initial RAM disk or filesystem into memory.
the boot loader
_________ is the information in the first sector of a hard disk or a removable drive. It identifies how and where the system’s operating system (OS) is located in order to be booted (loaded) into the computer’s main storage or random access memory (RAM).
The Master Boot Record (MBR)
The boot loader has two distinct stages:
- a. For systems using the BIOS/MBR method: the boot loader examines the partition table and finds a bootable partition. Once it finds a bootable partition, it then searches for the second stage boot loader, for example GRUB, and loads it into RAM.
- b. For systems using the EFI/UEFI method: UEFI firmware reads its Boot Manager data to determine which UEFI application is to be launched and from where (i.e., from which disk and partition the EFI partition can be found). The firmware then launches the UEFI application, for example GRUB, as defined in the boot entry in the firmware’s boot manager.
- The second stage boot loader resides under /boot. A splash screen is displayed, which allows us to choose which operating system (OS) and/or kernel to boot. After the OS and kernel are selected, the boot loader loads the kernel of the operating system into RAM and passes control to it.
The ________ filesystem image contains programs and binary files that perform all actions needed to mount the proper root filesystem, and loading the device drivers for mass storage controllers.
initramfs
_________ responsible for figuring out which devices are present, locating the device drivers they need to operate properly, and loading them
udev system (for user device)
The (1)_______ program instructs the operating system that a filesystem is ready for use and associates it with a particular point in the overall hierarchy of the filesystem ((2)________).
- mount
- the mount point
If mount is successful, the initramfs is cleared from RAM, and the (1)______ program on the root filesystem ((2)_______) is executed.
- init
- /sbin/init