XK0-005 · Question #1780
XK0-005 Question #1780: Real Exam Question with Answer & Explanation
The correct answer is B: mount -a. After editing the /etc/fstab file, the mount -a command is the standard way to verify the file's syntax and test if all entries can be mounted as specified, without requiring a system reboot. This command attempts to mount all filesystems listed in /etc/fstab that are not already
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
Explanation
After editing the /etc/fstab file, the mount -a command is the standard way to verify the file's syntax and test if all entries can be mounted as specified, without requiring a system reboot. This command attempts to mount all filesystems listed in /etc/fstab that are not already mounted and marked as 'auto'.
Common mistakes.
- A. The
fsadmcommand is typically used for filesystem administration tasks like resizing or checking, but not primarily for validating/etc/fstabsyntax or testing mounts. - C. The
fsck -Ncommand performs a dry run of a filesystem check, showing what would be done without making changes, but it does not validate/etc/fstabsyntax or test mounting operations. - D. The
mountpoint -dcommand checks if a directory is a mount point and returns its device ID, but it is not used for validating/etc/fstabor attempting to mount all entries.
Concept tested. Validating /etc/fstab configuration
Reference. https://man7.org/linux/man-pages/man8/mount.8.html
Topics
Community Discussion
No community discussion yet for this question.