nerdexam
CompTIA

XK0-004 · 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. An incorrect mount option in /etc/fstab prevents a filesystem from mounting. Correcting the options to include 'auto' and running mount -a applies the fix without a reboot.

Troubleshooting and Diagnostics

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-004 question #131 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

(53 responses)
  • A
    8% (4)
  • B
    74% (39)
  • C
    4% (2)
  • D
    15% (8)

Why each option

An incorrect mount option in /etc/fstab prevents a filesystem from mounting. Correcting the options to include 'auto' and running mount -a applies the fix without a reboot.

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

Changing the device name from /dev/sda1 to /dev/sda2 without evidence the partition changed would mount the wrong device and does not address the mount options error.

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

The fstab entry likely contained 'noauto' or an invalid option preventing auto-mount. Changing the options to auto,dev,sync,rw,nosuid enables the filesystem to be mounted automatically and immediately via the mount -a command, which re-reads /etc/fstab without requiring a reboot.

CChange the mount point to data and reboot.

Mount points in /etc/fstab must be absolute paths beginning with '/'; changing the mountpoint to 'data' without a leading slash creates an invalid fstab entry.

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

The dump column controls whether the dump backup utility includes the filesystem; setting it to 1 has no effect on whether the filesystem can be mounted by the mount -a command.

Concept tested: Linux /etc/fstab mount options and mount -a command

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

Topics

#fstab#mount options#filesystem mounting#/etc/fstab

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice