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.
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
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)- A8% (4)
- B74% (39)
- C4% (2)
- D15% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.
