Courseiva
Block Devices, Filesystems and Advanced StorageeasyMultiple SelectObjective-mapped

LPIC-2 Practice Question: Block Devices, Filesystems and Advanced Storage

Which TWO commands display UUIDs of block devices? (Select TWO)

⚠ Common exam trap

Test-takers frequently confuse partition UUIDs (shown by `fdisk -l` for GPT disks) with filesystem UUIDs, or assume `parted` or `udevadm` are standard tools for listing filesystem UUIDs, when in fact only `blkid` and `lsblk` are the correct commands for that specific task.

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

lsblk -o UUID

B is correct because `lsblk -o UUID` explicitly lists the UUID column for all block devices, showing the filesystem UUIDs. D is correct because `blkid` is the dedicated command to display block device attributes, including UUIDs, by reading the udev database or directly probing the device.

Answer analysis

Option-by-option breakdown

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

  • parted /dev/sda print

    Why it's wrong here

    parted shows partition table but not UUIDs.

  • lsblk -o UUID

    Why this is correct

    Shows UUID column.

  • udevadm info --query=all --name=/dev/sda

    Why it's wrong here

    Shows udev information including UUID but not specifically filesystem UUID.

  • blkid

    Why this is correct

    Displays UUIDs and other attributes.

  • fdisk -l

    Why it's wrong here

    fdisk -l lists partitions but not UUIDs by default.

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.