XK0-004 · Question #406
An administrator is provisioning and attaching a secondary disk to a Linux server as a data drive. Which Of the following commands the administrator use to find the UUID Of the disk so the drive can…
The correct answer is D. fstab. The /etc/fstab file is where UUID-based mount entries are configured to ensure disks are mounted automatically at boot on Linux.
Question
An administrator is provisioning and attaching a secondary disk to a Linux server as a data drive. Which Of the following commands the administrator use to find the UUID Of the disk so the drive can be mounted upon boot?
Options
- Ablkid
- Bisblk
- C2label
- Dfstab
How the community answered
(48 responses)- A2% (1)
- C4% (2)
- D94% (45)
Why each option
The /etc/fstab file is where UUID-based mount entries are configured to ensure disks are mounted automatically at boot on Linux.
blkid is a command that displays block device attributes including UUIDs but is used to discover the UUID, not to configure the boot-time mount itself.
lsblk lists block device topology and can show filesystem info but is not the configuration file used to set up persistent mounts at boot.
e2label is used to read or set filesystem labels on ext2/ext3/ext4 partitions, not to retrieve UUIDs or configure boot-time mounting.
The /etc/fstab file controls persistent disk mounting at boot time and is where the administrator adds a UUID-based entry for the new data drive to ensure it mounts on every startup. Populating fstab with the drive's UUID (rather than a device name like /dev/sdb) ensures the correct disk is always mounted even if device naming changes between reboots.
Concept tested: Linux persistent disk mounting via fstab with UUID
Source: https://man7.org/linux/man-pages/man5/fstab.5.html
Topics
Community Discussion
No community discussion yet for this question.