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…
Question
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)- A13% (6)
- B78% (35)
- C7% (3)
- D2% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.
