XK0-006 Troubleshooting Practice Question
A server fails to boot with a kernel panic after a system update. The administrator suspects a corrupt initramfs. Which GRUB boot parameter should be added temporarily to boot into an emergency shell where the filesystem can be repaired?
⚠ Common exam trap
XK0-006 often tests the distinction between rd.break (initramfs-stage break) and emergency/single (systemd-stage targets), so candidates must recognize that a corrupt initramfs requires breaking before switch_root.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
rd.break
rd.break is a kernel boot parameter that interrupts the boot process before the initramfs switches control to the real root filesystem, dropping the administrator into a debug shell (switch_root prompt). From there, the root filesystem can be mounted read-write and repaired, or the initramfs regenerated. This is the standard RHEL/CentOS method for recovering from a corrupt initramfs or forgotten root password.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
rd.break
Why this is correct
rd.break interrupts boot before the initramfs hands control to systemd, dropping into a switch_root emergency shell with the real root mounted read-only at /sysroot. This lets the administrator remount it read-write and repair the corrupt initramfs, satisfying the temporary-boot-parameter constraint.
- ✗
emergency
Why it's wrong here
The emergency parameter is a systemd target that still requires a functioning initramfs to mount the root filesystem, so a corrupt initramfs causes the same panic before the shell appears. It is tempting because it sounds like a recovery mode, and it would be correct for repairing a system whose initramfs loads but whose normal units fail.
- ✗
single
Why it's wrong here
The single parameter tells systemd to boot into rescue mode, which still depends on the initramfs to locate and mount the root filesystem, so a corrupt initramfs panics before reaching it. It is tempting as the classic recovery entry, and it would be correct for resetting a forgotten root password on a system whose initramfs is intact.
- ✗
nomodeset
Why it's wrong here
nomodeset disables kernel mode setting for graphics drivers, addressing blank or distorted displays, and has no bearing on initramfs integrity or emergency shell access. It is tempting because it is a common temporary GRUB workaround, and it would be correct when a system boots but the display fails due to an incompatible GPU driver.
Go deeper
Related to this question
Learn chapter
Navigating the Filesystem
Key term
Shell
A shell is a computer program that provides a user interface to access an operating system's services, typically by accepting text commands.
Key term
GRUB
GRUB (Grand Unified Bootloader) is a boot loader package that loads and manages the operating system startup process on Linux and other Unix-like systems.
About these practice questions
This XK0-006 question is part of Courseiva's 781-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.