101.2 Boot the system Flashcards

1
Q

What does BIOS stand for?

A

Basic Input/Output System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What function does the BIOS have?

A

The BIOS on the motherboard checks on all of the hardware and input and output devices after a computer starts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does Grub stand for?

A

GRand Unified Bootloader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the name of the boot program (boot loader) in Linux?

A

The boot program is called GRUB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the GRUB do?

A

The GRUB will look for the section of the hard drive that contains the data needed to boot the operating system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Who mounts the file system from the hard disk on a computer at start?

A

The Linux Kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the Linux Kernel load at computer start?

A

Initial RAM disk and the file system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the order of First initialization in a computer?

A

BIOS > GRUB > Linux Kernel > Initial RAM Disk > FS > Initial RAM Disk Removal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the Linux Kernel load at computer start?

A

Initial RAM disk and the file system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are boot logs?

A

Boot logs are logs that are generated when the computer itself boots up.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Where do boot logs come from?

A

Boot logs are generated from the Kernel Ring Buffer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Are boot logs volatile? What does that mean?

A

Yes, they are typically volatile, meaning that once the computer reboots, these logs are gone.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Is dmesg legacy to pull up info from the Kernel Ring Buffer?

A

Yes, now in most modern distros, systemd has substituted init and it uses journalctl instead of dmesg.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Is dmesg legacy to pull up info from the Kernel Ring Buffer?

A

Yes, now in most modern distros, systemd has substituted init and it uses journalctl instead of dmesg.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does journalctl log?

A

It logs every event that goes on within the computer, including the kernel messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does journalctl mean?

A

Journal control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

what does the dmesg command show?

A

The dmesg utility shows the Kernel Ring Buffer messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What would you usually look for in the messages (dmesg) in the Kernel Ring Buffer?

A

You will use the Kernel Ring Buffer to see if hardware is getting recognized by the Linux Kernel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The version of a init that has been used in Linux Systems is based off of the system _________.

A

V init system (also known as Sys V init).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

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?

A

/sbin/init

21
Q

What does /sbin/init read once started?

A

It reads the config settings in /etc/inittab

22
Q

What does the init process read in the /etc/inittab file?

A

It reads which run level the system should be operating in.

23
Q

What is a downside to the classic init system?

A

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.

24
Q

What are the 3 main locations where you would find a systemd unit file?

A
  1. default location : /usr/lib/systemd/system - where unit files are installed by packages
  2. /run/systemd/system
  3. /etc/systemd/system (if modification is needed)
25
Q

What happens in stage 1 of the boot process?

A

BIOS passes and it locates a bootloader (boot.img)

26
Q

What happens in stage 1.5 of the boot process?

A

core.img file is located by the boot.img file

27
Q

What is the version of GRUB that can be found in older systems?

A

Legacy GRUB

28
Q

Inside the grub shell environment, what command do you use to find out the location of the stage 1 file?

A

> find /grub/stage1

29
Q

what happens in stage 2 of the boot process?

A

The actual boot partition gets read.

30
Q

What does MBR stand for?

A

Master Boot Record

31
Q

How many partitions does MBR support?

A

24 (4 partitions with one extended to 23 partitions).

32
Q

What was the largest partition size old MBR allowed?

A

2TB max.

33
Q

What does UEFI stand for?

A

Unified Extensible Firmware Interface

34
Q

What does UEFI replace?

A

The old BIOS

35
Q

What type of architecture does UEFI need to work?

A

64bit OS

36
Q

What comes after the MBR to let the system know it is a GPT style disk?

A

Using a GPT Header and the Partition Entry Array

37
Q

What does the core.img in GRUB2 look for?

A

/boot/efi partition

38
Q

What format does the /boot/efi partition (ESP EFI system partition) have to have?

A

vfat or FAT32

39
Q

In GRUB2, what are the 2 files in stage 2 that are under /boot/grub2 ?

A

grubenv and themes

40
Q

What is the command to view the default boot entry for the grub configuration file?

A

grub2-editenv list

41
Q

Which command re-reads and updates the file /boot/grub2/grub.conf ?

A

grub2-mkconfig

42
Q

In GRUB legacy, what key do you use to append or add options to the kernel boot line?

A

Letter A (A for append)

43
Q

Once inside the GRUB legacy, what key do you use to open the GRUB command line?

A

The C key (C for CLI)

44
Q

In GRUB2, what key do you use to edit a grub menu item?

A

The E key (E for Edit)

45
Q

In GRUB2, what keys do you use to boot a selection or modified kernel parameter?

A

Ctrl+x or F10

46
Q

In GRUB2, what is the line called that modifies the kernel?

A

Linux

47
Q

What is the command you would use to see kernel messages in a Linux distro that uses systemd?

A

journalctl -k

48
Q

What does the boot loader GRUB do?

A

The boot loader loads the Linux Kernel

49
Q

To what pseudo file system does d-bus send the info to about a piece of hardware that is connected to the computer?

A

The info is attached to the /dev pseudo file system.