Courseiva
System Architecture →mediumMultiple Choice

LPIC-1 System Architecture Practice Question

A Linux workstation fails to boot and drops to a GRUB prompt. The administrator needs to inspect the available disks and partitions from within the GRUB environment before attempting recovery. Which command lists block devices and partitions recognized by GRUB?

⚠ Common exam trap

The trap here is assuming familiar Linux disk utilities work inside the GRUB shell, when GRUB only supports its own built-in commands such as ls.

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

✓

ls

The GRUB shell provides its own command set, and ls enumerates devices and partitions that GRUB can see, such as (hd0,gpt1). Userspace tools like lsblk, fdisk, and parted are not available in that environment. Using ls lets the administrator identify the correct root device before loading the kernel or reinstalling the bootloader.

Answer analysis

Option-by-option breakdown

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

  • ✓

    ls

    Why this is correct

    In the GRUB shell, ls lists devices and partitions that GRUB recognizes, such as (hd0) and (hd0,gpt1). It is the GRUB-native way to inspect available disks and partitions before setting root and loading the kernel, making it the correct tool for this recovery step.

  • ✗

    fdisk -l

    Why it's wrong here

    fdisk -l lists partitions from a running Linux system, not from the GRUB environment. GRUB does not provide fdisk, so this command is unavailable at the GRUB prompt and cannot be used to examine disks before recovery. The administrator needs a GRUB-native command instead.

  • ✗

    parted -l

    Why it's wrong here

    parted -l is a userspace partitioning utility that runs under Linux, not inside GRUB. It cannot be executed at the GRUB prompt, so it does not help the administrator enumerate devices during boot recovery. GRUB requires its own commands, such as ls, to discover partitions.

  • ✗

    lsblk

    Why it's wrong here

    lsblk is a Linux userspace utility that reads sysfs to list block devices, but it is not available inside the GRUB shell. GRUB has its own limited command set, so invoking lsblk at the GRUB prompt fails and cannot help the administrator identify disks and partitions during recovery.

About these practice questions

This LPIC-1 question is part of Courseiva's 402-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 →

How Courseiva writes practice questions · Editorial policy

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 LPI exam blueprint

This LPIC-1 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-1 exam.