Boot Processes Flashcards

(27 cards)

1
Q

What is the sequence of the Linux boot process?

A

BIOS/UEFI → MBR/Bootloader → Kernel Initialization → Init System & Services.

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

What is POST in BIOS?

A

Power-On Self Test; checks hardware integrity before loading the OS.

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

Where is the Master Boot Record located?

A

In the first 512 bytes of the bootable storage device (e.g., /dev/sda).

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

What does the first 446 bytes of the MBR contain?

A

Primary bootloader code.

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

What tool is responsible for loading the Linux kernel?

A

GRUB (Grand Unified Bootloader).

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

What is the purpose of GRUB Stage 2?

A

It provides the user interface and reads configuration from /boot/grub/grub.cfg.

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

What does the Linux kernel do after decompression?

A

Detects hardware, sets up memory management, loads drivers, and mounts the root filesystem.

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

What is initramfs used for?

A

Temporary root filesystem that loads drivers and mounts the real root filesystem.

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

What replaced SysV init in modern Linux systems?

A

systemd, using targets instead of runlevels.

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

What command shows the current runlevel?

A

who -r

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

What does /etc/fstab define?

A

Filesystem mount points and options.

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

How can you mount all filesystems listed in /etc/fstab?

A

mount -a

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

What is single-user mode used for?

A

System recovery and maintenance tasks.

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

What is rescue.target in systemd?

A

Single-user mode for maintenance with minimal services.

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

What are common causes of a kernel panic during boot?

A

Missing initrd, incorrect root device, hardware failure, or corrupted kernel image.

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

How can you rebuild initramfs?

A

update-initramfs -u

17
Q

How can you rebuild the GRUB configuration?

18
Q

What command visualizes boot performance?

A

systemd-analyze plot > boot.svg

19
Q

How do you check the total boot time?

A

systemd-analyze

20
Q

What command lists slowest boot services?

A

systemd-analyze blame

21
Q

What is the difference between initrd and initramfs?

A

initrd uses a block device filesystem; initramfs uses a cpio archive in RAM.

22
Q

What mode does the CPU operate in during BIOS execution?

A

Real mode (16-bit).

23
Q

How does the system switch from real mode to protected mode?

A

Loads the Global Descriptor Table (GDT) and sets a bit in CR0 register.

24
Q

How can you enter single-user mode from GRUB?

A

Append ‘single’ or ‘systemd.unit=rescue.target’ to kernel parameters.

25
What is emergency.target used for?
Minimal recovery shell when the system cannot boot normally.
26
How do you load a linux kernel?
Bootloader reads compressed kernel image and initramfs into memory and jumps to kernel entrypoint
27
How do you load a module into the linux kernel?
Kernel modules are loaded at runtime with a tool like modprobe lsmod, modinfo for module info rmmod for removing