Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
CompTIA Server+ · CompTIA
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
“A. mkdir /home” - This is unnecessary and has no effect because the /home directory already exists and the local partition is mounted. “B. umount nfsserver:/home” - This command will result in an error because the NFS mount has not been done. “C. rmdir nfsserver:/home/dev/sda2” - This is an incorrect path specification and will cause an error when executed. Also, it is dangerous to attempt to remove a directory on a remote server. Therefore, executing “D. mount /home” is the first and most appropriate step to solve this problem. This will hopefully result in a correct NFS mount based on the settings in /etc/fstab and make the user's files available again.
The mount /home command attempts to mount /home based on the existing entry in /etc/fstab. This would attempt to mount nfsserver:/home to /home as specified. Since the issue seems to be that the NFS share did not mount properly, this is the correct first step to attempt to resolve the issue.
B. Mount the NFS share using the mount command. This option means using the command-line tool to connect the remote NFS share to the local mount point. Mounting the NFS share can resolve the issue, as it can restore access to the files in the home directory that are stored on the NFS server. Mounting the NFS share can also verify that the NFS client package is installed and configured correctly on the Linux server.