nerdexam
CompTIA

XK0-005 · Question #1126

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. When a newly added filesystem fails to mount from /etc/fstab, especially with a generic refusal error, troubleshooting often involves adjusting the mount options. Adding common options like auto for automatic mounting by mount -a, rw for read-write access, and dev to allow…

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?

Exhibit

XK0-005 question #1126 exhibit

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

(45 responses)
  • A
    13% (6)
  • B
    78% (35)
  • C
    7% (3)
  • D
    2% (1)

Why each option

When a newly added filesystem fails to mount from `/etc/fstab`, especially with a generic refusal error, troubleshooting often involves adjusting the mount options. Adding common options like `auto` for automatic mounting by `mount -a`, `rw` for read-write access, and `dev` to allow device special files can resolve conflicts or missing default settings that prevent mounting.

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

Changing the device from `/dev/sda1` to `/dev/sda2` is arbitrary and does not address why `/dev/sda1` failed to mount, assuming `/dev/sda1` is the intended device.

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

Modifying the `fstab` entry's options to include `auto` (to be processed by `mount -a`), `rw` (for read-write access), and `dev` (to allow interpretation of character or block special devices) is a common troubleshooting step when a filesystem refuses to mount. Incorrect or missing options in `fstab` can prevent successful mounting, and ensuring a robust set of options can resolve such issues.

CChange the mount point to data and reboot.

Changing the mount point from `/data` to `data` (which would mean a relative path, likely from `/`) would almost certainly fail or mount in an unintended location, and is not a common fix for a refusal to mount an existing mount point.

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

The dump column in `/etc/fstab` is for backup utilities (specifying if the filesystem should be dumped by `dump` command) and has no bearing on whether the system can mount the filesystem.

Concept tested: Troubleshooting fstab mount issues

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

Topics

#fstab#mount options#filesystem management#troubleshooting mounts

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice