nerdexam
CompTIA

XK0-005 · Question #92

A user attempts to use the mount -a command but gets the following error: mount: mount point /mnt/test does not exist Which of the following commands best describes the action the Linux…

The correct answer is B. mkdir -p /mnt/test. The error message explicitly states that the mount point directory '/mnt/test' does not exist. Before any filesystem can be mounted, its mount point - a directory - must exist on the filesystem. The correct next step is to create it using 'mkdir -p /mnt/test', which creates the…

Troubleshooting

Question

A user attempts to use the mount -a command but gets the following error:

mount: mount point /mnt/test does not exist Which of the following commands best describes the action the Linux administrator should take NEXT?

Options

  • Amount -a /mnt/test
  • Bmkdir -p /mnt/test
  • Dmkfs /mnt/test
  • Etouch /mnt/test

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    88% (36)
  • D
    2% (1)
  • E
    7% (3)

Explanation

The error message explicitly states that the mount point directory '/mnt/test' does not exist. Before any filesystem can be mounted, its mount point - a directory - must exist on the filesystem. The correct next step is to create it using 'mkdir -p /mnt/test', which creates the directory and any missing parent directories. Option A is incorrect because 'mount -a' with a path argument is not valid syntax for fixing this issue. Option D (mkfs) formats a storage device with a filesystem and is unrelated to creating a directory. Option E (touch) creates an empty file, not a directory, and cannot serve as a mount point.

Topics

#Filesystem management#Directory commands#Mount points#Error resolution

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice