Courseiva
Devices, Filesystems and FHSmediumMultiple ChoiceObjective-mapped

LPIC-1 Devices, Filesystems and FHS Practice Question

Exhibit

$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Device     Start      End  Sectors  Size Type
/dev/sdb1   2048 20971519 20969472   10G Linux filesystem
$ sudo blkid /dev/sdb1
/dev/sdb1: UUID="12345678-1234-1234-1234-123456789abc" TYPE="ext4" PARTUUID="abcdef01-02"

Refer to the exhibit. The administrator wants to mount /dev/sdb1 persistently using its UUID. Which line should be added to /etc/fstab?

⚠ Common exam trap

Candidates often confuse the filesystem UUID with the partition UUID (e.g., from GPT partition table). Only the filesystem UUID as shown by blkid works in /etc/fstab.

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

UUID=12345678-1234-1234-1234-123456789abc /mnt/data ext4 defaults 0 2

The /etc/fstab entry must use the full UUID of the filesystem (not the partition) in the format UUID=... followed by the mount point, filesystem type, mount options, dump flag, and fsck order. The UUID uniquely identifies the filesystem regardless of device name changes, making mounts persistent across reboots.

Answer analysis

Option-by-option breakdown

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

  • UUID=abcdef01-02 /mnt/data ext4 defaults 0 2

    Why it's wrong here

    abcdef01-02 is the PARTUUID, not the filesystem UUID.

  • /dev/sdb1 /mnt/data ext4 defaults 0 2

    Why it's wrong here

    Using device name is not persistent; device names can change.

  • LABEL= /mnt/data ext4 defaults 0 2

    Why it's wrong here

    There is no label shown; LABEL= requires a label.

  • UUID=12345678-1234-1234-1234-123456789abc /mnt/data ext4 defaults 0 2

    Why this is correct

    This line uses the correct UUID, mount point, filesystem type, and options.

About these practice questions

One of 527 original LPIC-1 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-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.