Boot and Startup Flashcards
What is the “Boot Process”?
When you apply power to your computer, it begins the so-called boot process. This process usually ends when the system is ready for use. It consists of a series of operations and involves several, different programs.
What does BIOS stand for?
Basic Input Output System
How does the boot process work with BIOS (legacy)?
BIOS loads and begins with the
- Power-On Self Test (POST): relevant system devices are initialised and prepared for operation
- BIOS searches for a Boot Record on the available disks and executes the first occurrence (= master boot record MBR)
- Boot loader may provide a selection menu to allow booting of different operating systems (select an entry)
- boot loader searches for the kernel
- load kernel; kernel takes over the devices initialised by the BIOS and may re-initialise them
- kernel hands over the further boot process to /sbin/init
What is UEFI? What does it do?
On modern computers, UEFI has replaced and superseded the BIOS. Instead of just a simple rewrite, UEFI provides sort of a mini operating system itself. Thus, it has knowledge about partitions and can even be extended using drivers
How does the boot process work with UEFI?
Instead of loading the MBR, UEFI is loaded, scans its configuration partition for configured operating systems and executes either the default or the user’s choice. Then, control is transferred to the Boot Loader.
Who is traditionally responsible for hardware detection and setup of all devices?
The Kernel
What’s the problem if the kernel is responsible for hardware detection and setup of all devices?
Because there are so many devices out there, the kernel provided by a Linux distributor is usually very generic. Thus, the kernel would become very big in terms of memory footprint.
What’s the solution for not overloading the kernel with hardware detection stuff?
The solution is to load only a very small system into memory, which is then responsible for hardware detection and preparation of devices and disks. This initial RamDisk (initrd) can be configured very specifically to the host computer. Afterwards, control over the system is handed over to /sbin/init.
What is LILO?
LILO (LInux LOader) is one of the oldest boot loaders. It used to be the standard for Linux systems. Its major drawback is the necessity to reinstall the bootloader in order to change the configuration.
What is GRUB?
GRUB (GRand Unified Bootloader) is the boot loader used on most distributions nowadays. It is modular, generic and highly configurable.
Which boot Manager uses Windows?
NTLDR or Windows Boot Manager
Which boot Manager uses Mac?
Boot Camp
What’s the most popular boot loader for embedded Linux devices, such as Routers or smart phones?
das U-Boot
Name some smaller boot loaders
Smart Boot Manager, XOSL, RedBoot or CFE.
What does the init process do?
Once the kernel has booted, the init process is responsible for bringing up the system. This includes starting of services, configuration of network interfaces, initialisation of further devices and finally presenting a login prompt.
How and by whom is the init process invoked?
It is invoked by the kernel as /sbin/init.
What’s the process ID of the init process?
Init’s process ID is usually 1, it is the parent process of all other processes running on the system.
What happens if the init process dies?
When the init process dies, the system is halted.
What is upstart?
Ubuntu does not use the traditional “init” system, consisting of scripts and symbolic links. Instead, it relies on “upstart” and “systemd”, which allow better handling of dependencies between startup scripts. upstart and systemd support asynchronous starting of services, whilst being compatible with the traditional “init” system.
What are daemons?
Programs running in the background are often called “daemons”. In the background means that the program is completely detached from the terminal. All relevant system services are implemented as daemons.
What does it mean if a program is not connected to the terminal.
The standard file descriptors stdin, stdout and stderr are NOT connected to the terminal. They may, however, be redirected to a log file.
What is Apache Daemon?
One of the most populare web servers
What is SSH Daemon?
Provides remote login capabilities
What is udevd?
Responsible for device configuration
What is syslogd?
Centralised log file storage