XK0-004 · Question #421
An administrator added a disk to a virtual machine. The administrator attempts to mount the first partition with the following command: Mount/devsda1/mount_point The administrator receives the…
The correct answer is A. mount -a. When a mount command fails because the target mount point path does not exist, mount -a processes fstab entries to establish the required filesystem mounts.
Question
An administrator added a disk to a virtual machine. The administrator attempts to mount the first partition with the following command:
Mount/devsda1/mount_point The administrator receives the following error message:
Mount: /mount_point: does not exist. Which of the following BEST solves thrs issue and allows the administrator to run the mount command?
Options
- Amount -a
- BAdd the mount point to /etc/ fstab
- Cmount -f /dev/sda1/mount_point
- Dmkdir/mount_point
How the community answered
(28 responses)- A89% (25)
- B7% (2)
- C4% (1)
Why each option
When a mount command fails because the target mount point path does not exist, mount -a processes fstab entries to establish the required filesystem mounts.
'mount -a' instructs the kernel to mount all filesystems listed in /etc/fstab, processing the full persistent storage configuration and activating all defined mount points. This command is the standard method to apply the system's fstab-defined mount configuration after a partition has been added and registered.
Adding an entry to /etc/fstab records the persistent configuration but does not immediately execute the mount or create the missing mount point directory at runtime.
'mount -f' performs a simulated dry-run that validates the command syntax without actually mounting the filesystem or creating any missing directories.
'mkdir /mount_point' creates only the empty directory structure and requires a separate mount command afterward to attach the partition to that path.
Concept tested: Mounting all fstab entries with mount -a
Source: https://man7.org/linux/man-pages/man8/mount.8.html
Topics
Community Discussion
No community discussion yet for this question.