Courseiva
Linux Kernel and System StartupmediumMultiple SelectObjective-mapped

LPIC-2 Linux Kernel and System Startup Practice Question

A system fails to boot due to a corrupted initramfs. Which TWO methods can be used to recover? (Choose two.)

⚠ Common exam trap

Many candidates think 'init=/bin/bash' is a universal recovery method, but it fails to provide a functional environment for rebuilding initramfs because the root filesystem is not fully mounted and critical tools are missing.

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

Use the rescue mode of the installation media (e.g., RHEL rescue, Ubuntu recovery)

Booting from installation media (e.g., RHEL rescue or Ubuntu recovery) provides a minimal environment that can mount the root filesystem, chroot into it, and then rebuild the initramfs using the system's own kernel and modules. This method does not require a working initramfs on the disk, as the rescue environment supplies its own kernel and initial RAM disk.

Answer analysis

Option-by-option breakdown

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

  • Edit GRUB command line to add 'init=/bin/bash' and then rebuild initramfs from that shell

    Why it's wrong here

    While init=/bin/bash gives a shell, the root filesystem may be read-only and tools may be missing; not reliable.

  • Reinstall the kernel package from the GRUB command line using a network boot

    Why it's wrong here

    GRUB cannot run package managers; this is not possible.

  • Use kexec to boot a different kernel

    Why it's wrong here

    kexec requires a running kernel; cannot be used from a failed boot.

  • Use the rescue mode of the installation media (e.g., RHEL rescue, Ubuntu recovery)

    Why this is correct

    Rescue mode provides a minimal environment to repair the system.

  • Boot with a live CD, chroot to the system, and rebuild initramfs

    Why this is correct

    This is a standard recovery method, giving full access to the system.

About these practice questions

One of 507 original LPIC-2 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 LPIC-2 practice question is part of Courseiva's free LPI 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 LPIC-2 exam.