XK0-005 · Question #1126
XK0-005 Question #1126: Real Exam Question with Answer & Explanation
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 device
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.
Explanation
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.
Common mistakes.
- A. Changing the device from
/dev/sda1to/dev/sda2is arbitrary and does not address why/dev/sda1failed to mount, assuming/dev/sda1is the intended device. - C. Changing the mount point from
/datatodata(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. - D. The dump column in
/etc/fstabis for backup utilities (specifying if the filesystem should be dumped bydumpcommand) and has no bearing on whether the system can mount the filesystem.
Concept tested. Troubleshooting fstab mount issues
Reference. https://man7.org/linux/man-pages/man5/fstab.5.html
Topics
Community Discussion
No community discussion yet for this question.