Courseiva
Troubleshooting →hardMultiple Select

XK0-006 Troubleshooting Practice Question

A system fails to boot with a kernel panic. The administrator wants to recover by accessing a root shell. Which THREE methods can be used to achieve this?

⚠ Common exam trap

Test-takers frequently confuse the GRUB command line with a Linux shell, mistakenly thinking filesystem repair commands like fsck can be run directly from GRUB, or they may think removing 'quiet' alone grants root access when it only affects verbosity.

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

✓

Append 'single' to the kernel command line in GRUB

Option B is correct because appending 'single' (or '1') to the kernel command line in GRUB boots the system into single-user/rescue mode, which starts a root shell without requiring the normal login and is a standard recovery method. Option D is correct because appending 'rd.break' to the kernel command line interrupts the boot process in the initramfs (dracut) before the root filesystem is mounted, dropping the administrator into a root shell where the real root can be mounted and repaired. Option E is correct because booting from a live CD/USB and then chrooting into the installed system's root filesystem gives a root shell with access to the broken system's files and tools, allowing repairs such as reinstalling GRUB or fixing /etc/fstab. Option A is incorrect because 'fsck /dev/sda1' is not a valid GRUB command-line operation for obtaining a root shell; GRUB's command line is for bootloader commands, not for running filesystem checks as a recovery shell. Option C is incorrect because pressing 'e' in GRUB only opens the menu entry for editing and removing 'quiet' merely changes console verbosity; it does not by itself provide a root shell.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Run 'fsck /dev/sda1' from the GRUB command line

    Why it's wrong here

    fsck repairs filesystem corruption; it does not present a shell, and the GRUB command line offers no interactive root environment. It is tempting because fsck is the standard recovery tool for damaged volumes, which is a different failure from a kernel panic.

  • ✓

    Append 'single' to the kernel command line in GRUB

    Why this is correct

    Appending 'single' boots the kernel into single-user mode, which starts a root shell without launching the full init sequence. This bypasses the failing services that caused the panic, directly satisfying the requirement to reach a root shell for recovery.

  • ✗

    Press 'e' in GRUB and remove 'quiet'

    Why it's wrong here

    Removing 'quiet' only increases console verbosity; the kernel still panics and no shell appears. It is tempting as a diagnostic step, and would be right when boot messages are hidden and you need to read the actual failure output.

  • ✓

    Append 'rd.break' to the kernel command line in GRUB

    Why this is correct

    'rd.break' interrupts the initramfs before control passes to systemd, dropping into a root shell in the emergency environment. From there the administrator can remount the real root filesystem and repair it, satisfying the recovery goal despite the kernel panic.

  • ✓

    Boot from a live CD and chroot into the installed system

    Why this is correct

    Booting a live CD runs an independent kernel and userspace, sidestepping the broken installed system entirely. Chrooting into the mounted root filesystem then provides a root shell with access to the installed system's tools, enabling repair of the panic cause.

About these practice questions

One of 781 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.