XK0-006 practice question 4 of 15

Which of the following best describes the role of initrd?

Full set: 149 questions
Answer options
A: It is required to connect to the system via SSH.
B: It contains basic kernel modules and drivers required to start the system. Correct answer
C: It contains trusted certificates and secret keys of the system.
D: It is required to initialize a random device within a Linux system.
Correct Answer:
B. It contains basic kernel modules and drivers required to start the system.
Explanation

The initrd (initial RAM disk) is a temporary root file system loaded into memory during the Linux boot process. Its primary role is to contain a minimal set of drivers and kernel modules (e.g., for SATA, NVMe, or RAID controllers) that are necessary for the kernel to access the actual root filesystem on a physical device. Once the real root filesystem is mounted, the system pivots to it, and the initrd is unmounted and its memory is freed. This mechanism allows for a smaller, more generic kernel that can still boot on a wide variety of hardware configurations.

Why Incorrect

A. SSH is a network service for remote access, which is started much later in the boot process, long after the initrd has served its purpose.
C. System certificates and secret keys are sensitive data stored securely on the permanent root filesystem, typically in /etc/ssl/ or similar directories, not in the temporary initrd.
D. The kernel's cryptographic subsystem initializes the random number generator devices (/dev/random, /dev/urandom), not the initrd.

References

1. The Linux Kernel Archives. (2020). ramfs, rootfs and initramfs. kernel.org. Section: "What is initramfs?". https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt

2. Red Hat Enterprise Linux 8 Documentation. (2023). Chapter 25. An introduction to the boot process. Section 25.3. "The initial RAM disk". https://access.redhat.com/documentation/en-us/redhatenterpriselinux/8/html/managingmonitoringandupdatingthekernel/an-introduction-to-the-boot-processmanaging-monitoring-and-updating-the-kernel#the-initial-ram-diskan-introduction-to-the-boot-process

3. Bovet, D. P., & Cesati, M. (2005). Understanding the Linux Kernel, 3rd Edition. O'Reilly Media. Chapter 19, Section "The Role of the initrd RAM Disk".

Scroll to Top