nerdexam
CompTIACompTIA

XK0-005 · Question #1780

XK0-005 Question #1780: Real Exam Question with Answer & Explanation

The correct answer is B: mount -a. After editing the /etc/fstab file, the mount -a command is the standard way to verify the file's syntax and test if all entries can be mounted as specified, without requiring a system reboot. This command attempts to mount all filesystems listed in /etc/fstab that are not already

System Management

Question

A Linux administrator edits a file that a system uses during the startup process to mount all the required partitions and volumes. The administrator wants to ensure no errors are in the file and the system will restart properly. Which of the following commands should the administrator use?

Options

  • Afsadm -v
  • Bmount -a
  • Cfsck -N
  • Dmountpoint -d

Explanation

After editing the /etc/fstab file, the mount -a command is the standard way to verify the file's syntax and test if all entries can be mounted as specified, without requiring a system reboot. This command attempts to mount all filesystems listed in /etc/fstab that are not already mounted and marked as 'auto'.

Common mistakes.

  • A. The fsadm command is typically used for filesystem administration tasks like resizing or checking, but not primarily for validating /etc/fstab syntax or testing mounts.
  • C. The fsck -N command performs a dry run of a filesystem check, showing what would be done without making changes, but it does not validate /etc/fstab syntax or test mounting operations.
  • D. The mountpoint -d command checks if a directory is a mount point and returns its device ID, but it is not used for validating /etc/fstab or attempting to mount all entries.

Concept tested. Validating /etc/fstab configuration

Reference. https://man7.org/linux/man-pages/man8/mount.8.html

Topics

#Filesystem Management#Linux Commands#fstab#System Startup

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions