CompTIA Linux+ Exam Study Guide Flashcards
(244 cards)
What are the stages of the Boot Process?
1) BIOS/UEFI POST
2) Boot Loader
3) Kernel Initializations
4) Start the System Initialization Processes (says or systemd)
BIOS / UEFI
This is the Basic Input Output System, a firmware that is on the mainboard that is used to initialize the hardware on the system. The process is called the Power On Self Test (POST) and it ensures that all of the connected devices are initialized and responding before passing over control to the bootloader. Most recently, the BIOS system has been replaced by the Unified Extensible Firmware Interface that performs the same tasks as the BIOS, but it has additional capabilities.
Boot Loader
This is the program that loads the operating system for the computer. It takes over once the POST has completed. On Linux, the most common bootloaders are GRUB (the GRand Unified Bootloader, also called legacy GRUB), and its updated replacement GRUB2, now simply referred to as GRUB. The bootloader is configured with the location of the desired operating system kernel which it loads into memory.
Kernel Initialization
The loaded Kernel will extract itself from a compressed image that is located in the /boot directory and then load the system initialization daemon. On older systems this was sysv-init , but on modern systems this is systemd . Once the kernel and the system initialization daemon are running, the system can start.
Describe System Initialization
The system initialization daemon mounts the devices located in fstab , and proceeds to boot the system into the default run level. Once the process has completed the system is considered booted
What are Boot Options
- Boot from ISO: This process uses a ISO image, that is mounted as a drive, to load the kernel.
- PXE: The Pre-EXacutable environment is a client environment that searches for an appropriate server on the network from which to acquire a boot image. Once this image has been located, it is downloaded using the trivial file transfer protocol (tftp)
- Boot from HTTP/HTPS: This process allows the image to be loaded using standard networking protocols.
Describe Boot File Locations
Most configuration files for the boot process are in the /boot directory. Exceptions to this can be the GRUB files that can be located in different places, depending on the BIOS / UEFI specifications of the system. Most often they are found in one of the following:
• /etc/grub/
• /etc/grub2.cfg
• /boot/grub or /boot/grub2 • /boot/efi
Describe mkinitrd
This command will create the initial ramdisk is used by the kernel to preload block devices that are needed to access the root filesystem.
dracut
This command is similar to mkinitrd and results in an initial ramdisk the kernel can use to load block devices that are needed to access the root filesystem.
grub2-install
This command is used to install the GRUB2 boot loader onto a device, which includes necessary images as well as creating the boot sector
grub2-mkconfig
This command is used for creating a configuratuion file for use by GRUB2
initramfs
This is a complete set of root file system directories, bundled into a cpio archive and compressed.
efi files
These files are used by the UEFI bootloader and comprise the efi partition. They are normally located at /boot/efi/
vmlinuz
This is the name of the Linux kernel executable. It is a compressed kernel that is capable of loading the operating system into memory (Virtual Memory LINUX gZip)
vmlinux
This is a statically-linked executable file that contains the Linux kernel. It can be used in debugging. In contrast to vmlinu(z), this file is not compressed (Virtual Memory LINUX)
Describe Kernel Panic
A Kernel Panic is a situation where the kernel discovers an unrecoverable error and it is not able to recover from that error without risk of data loss. This normally results in a bug check error being printed to the screen, followed by a memory dump prior to either waiting for a manual reboot or automatically rebooting once the memory dump is completed
What is the lsmod command used for?
lsmod lists the currently loaded modules
insmod
Inserts a module into the kernel
modprobe
Loads or removes a loadable kernel module to or from the kernel
modinfo
Extracts information about a kernel module that is provided to the command on the command line
dmesg
Prints the message buffer of the kernel:
–This output usually contains messages from device drivers and kernel modules.
rmmod
Removes modules from the kernel, but not modules that are in use
depmod
Creates a list of module dependencies
/usr/lib/modules/[kernelversion]
This is location of the kernel modules specific to a release of the kernel