CompTIA Linux+ (XK0-006)System ManagementHard
During the Linux boot process, after the bootloader loads the compressed kernel image into memory, which component provides a temporary, RAM-based root filesystem containing essential drivers and tools needed to mount the real root filesystem before systemd (PID 1) takes over?
- A/etc/fstab
- Binitramfs
- Csystemd-udevd daemon
- DGRUB2 configuration file
Show answer & explanationAnswer & explanation
Correct answer: B. initramfs
The initramfs (initial RAM filesystem) is loaded by the bootloader alongside the kernel and provides just enough drivers and utilities (such as storage or LVM drivers) to locate and mount the actual root filesystem, after which control passes to systemd as PID 1.
Why the other options are wrong
- A. /etc/fstab is read later by systemd/mount, not used to boot the initial RAM environment.
- C. systemd-udevd manages device nodes but runs after the real root is active, not during initramfs handoff.
- D. GRUB's config file only defines boot menu entries and kernel parameters, not a filesystem.
initramfs
A temporary root filesystem loaded into RAM by the bootloader, containing drivers/tools needed to mount the actual root filesystem during boot.
- Built with tools like dracut or mkinitramfs
- Commonly needed for LVM, RAID, or encrypted root setups
- Handed off to the real root via 'switch_root'
Memory trick: initramfs = the 'temporary tent' pitched in RAM before the real house (root fs) is ready