XK0-005 · Question #785
A Linux administrator edits a file that a system uses during the startup process to mount all the required partitions and volumes. The administrator wants to ensure no errors are in the file and the…
The correct answer is B. mount -a. After editing /etc/fstab to manage partitions and volumes, the administrator should use mount -a to test the configuration for errors without requiring a full system reboot.
Question
A Linux administrator edits a file that a system uses during the startup process to mount all the required partitions and volumes. The administrator wants to ensure no errors are in the file and the system will restart properly. Which of the following commands should the administrator use?
Options
- Afsadm -v
- Bmount -a
- Cfsck -N
- Dmountpoint -d
How the community answered
(31 responses)- B90% (28)
- C3% (1)
- D6% (2)
Why each option
After editing `/etc/fstab` to manage partitions and volumes, the administrator should use `mount -a` to test the configuration for errors without requiring a full system reboot.
`fsadm` is a utility for filesystem administration tasks like resizing or checking filesystem consistency, not for validating the mount entries in `/etc/fstab`.
The `mount -a` command attempts to mount all filesystems listed in `/etc/fstab` that are configured to be mounted automatically (i.e., contain the 'auto' option and have a non-zero pass number). This action effectively validates the `/etc/fstab` entries and reports any errors or misconfigurations, ensuring the system can restart properly.
`fsck -N` performs a dry-run check of filesystem consistency on devices, but it does not validate the syntax or mountability of entries specified in the `/etc/fstab` file.
`mountpoint -d` is used to check if a specific directory is a mount point, which is irrelevant for a comprehensive validation of all entries within the `/etc/fstab` file.
Concept tested: Validating /etc/fstab configuration
Source: https://man7.org/linux/man-pages/man8/mount.8.html
Topics
Community Discussion
No community discussion yet for this question.