nerdexam
CompTIA

LX0-103 · Question #60

Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)

The correct answer is C. LABEL E. UUID. In /etc/fstab, partitions can be identified by LABEL or UUID instead of a device path like /dev/sda1, providing more stable references that survive device renaming.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

Question

Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)

Options

  • AFIND
  • BID
  • CLABEL
  • DNAME
  • EUUID

How the community answered

(52 responses)
  • A
    4% (2)
  • C
    94% (49)
  • D
    2% (1)

Why each option

In /etc/fstab, partitions can be identified by LABEL or UUID instead of a device path like /dev/sda1, providing more stable references that survive device renaming.

AFIND

FIND is not a valid keyword or identifier type recognized in /etc/fstab entries.

BID

ID is not a recognized /etc/fstab identifier keyword for specifying partitions.

CLABELCorrect

LABEL= uses a human-readable label assigned to the filesystem at creation time (e.g., with e2label or mkfs -L), and the kernel's udev subsystem resolves it to the correct block device at mount time, so the entry remains valid even if device node names change.

DNAME

NAME is not a valid /etc/fstab field identifier for referencing a partition.

EUUIDCorrect

UUID= uses the universally unique identifier assigned to the filesystem at format time, which is guaranteed to be unique and persistent across reboots and hardware changes, making it the most reliable way to identify a partition independently of its /dev path.

Concept tested: Identifying partitions by LABEL and UUID in /etc/fstab

Source: https://man7.org/linux/man-pages/man5/fstab.5.html

Topics

#fstab#UUID#LABEL#partition identification

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice