nerdexam
CompTIA

XK0-005 · Question #131

A junior systems administrator created a new filesystem /dev/sda1 with mountpoint /data and added it to the /etc/fstab for auto-mounting. When the systems administrator tries to mount the file…

The correct answer is B. Change the options to auto,dev,sync,rw,nosuid and run the mount -a command. To fix a filesystem refusal to mount after being added to /etc/fstab, the administrator should ensure correct mount options are specified, such as auto,dev,sync,rw,nosuid, and then execute mount -a to apply the changes.

System Management

Question

A junior systems administrator created a new filesystem /dev/sda1 with mountpoint /data and added it to the /etc/fstab for auto-mounting. When the systems administrator tries to mount the file system, the system refuses. Given the output below:

Which of the following steps is necessary?

Options

  • AChange the filesystem from /dev/sda1 to /dev/sda2 and reboot.
  • BChange the options to auto,dev,sync,rw,nosuid and run the mount -a command.
  • CChange the mount point to data and reboot.
  • DChange the dump column to 1 and run the mount -a command.

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    69% (20)
  • C
    10% (3)
  • D
    17% (5)

Why each option

To fix a filesystem refusal to mount after being added to `/etc/fstab`, the administrator should ensure correct mount options are specified, such as `auto,dev,sync,rw,nosuid`, and then execute `mount -a` to apply the changes.

AChange the filesystem from /dev/sda1 to /dev/sda2 and reboot.

Changing the filesystem from `/dev/sda1` to `/dev/sda2` is an arbitrary device change without justification and would not resolve an `fstab` option issue.

BChange the options to auto,dev,sync,rw,nosuid and run the mount -a command.Correct

When a filesystem refuses to mount, incorrect or missing options in its `/etc/fstab` entry are a common cause. Setting options like `auto` ensures `mount -a` processes the entry, `rw` provides read-write access, and others like `dev`, `sync`, `nosuid` provide appropriate handling for a data partition, resolving typical mounting issues.

CChange the mount point to data and reboot.

Changing the mount point to `data` (a relative path) is incorrect; mount points must be absolute paths (e.g., `/data`), and the existing `/data` is already valid.

DChange the dump column to 1 and run the mount -a command.

Changing the dump column (the 5th field in `/etc/fstab`) to `1` enables `dump` utility backups, which has no bearing on the ability of the filesystem to mount.

Concept tested: Correcting /etc/fstab entries for mounting

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

Topics

#/etc/fstab#Filesystem mounting#Mount options#Linux administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice