nerdexam
CompTIA

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.

System Management

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)
  • A
    89% (25)
  • B
    7% (2)
  • C
    4% (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.

Amount -aCorrect

'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.

BAdd the mount point to /etc/ fstab

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.

Cmount -f /dev/sda1/mount_point

'mount -f' performs a simulated dry-run that validates the command syntax without actually mounting the filesystem or creating any missing directories.

Dmkdir/mount_point

'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

#mount#mkdir#mount point#disk management

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice