nerdexam
CompTIA

SK0-005 · Question #185

A technician is working on a Linux server. The customer has reported that files in the home directory are missing. The /etc/ f stab file has the following entry: nfsserver:/home /home nfs defaults 0…

The correct answer is B. umount nfsserver:/home. The /etc/fstab file contains the information about the file systems that are mounted automatically at boot time or on demand. The entry nfsserver:/home /home nfs defaults 0 0 indicates that the /home directory on the local server is mounted from the /home directory on a remote…

Troubleshooting

Question

A technician is working on a Linux server. The customer has reported that files in the home directory are missing. The /etc/ f stab file has the following entry:

nfsserver:/home /home nfs defaults 0 0 However, a df -h /home command returns the following information:

/dev/sda2 10G 1G 9G 10% /home Which of the following should the technician attempt FIRST to resolve the issue?

Options

  • Amkdir /home
  • Bumount nfsserver:/home
  • Crmdir nfsserver:/home/dev/sda2
  • Dmount /home

How the community answered

(32 responses)
  • A
    3% (1)
  • B
    78% (25)
  • C
    13% (4)
  • D
    6% (2)

Explanation

The /etc/fstab file contains the information about the file systems that are mounted automatically at boot time or on demand. The entry nfsserver:/home /home nfs defaults 0 0 indicates that the /home directory on the local server is mounted from the /home directory on a remote server called nfsserver using the NFS protocol. However, the df -h /home command shows that the /home directory is actually mounted from a local partition /dev/sda2, which may not contain the user's files. This means that the NFS mount failed or was overridden by another mount. To resolve the issue, the technician should attempt to unmount the local partition using umount nfsserver:/home, which will detach the /home directory from /dev/sda2. Then, the technician should try to mount the NFS share again using mount /home, which will attach the /home directory to nfsserver:/home according to the /etc/fstab entry. Creating a new directory (A) or removing an existing one © would not help, as they would not affect the mount point. Mounting /home (D) without unmounting it first would not work, as it would result in an error that the mount point is busy.

Topics

#Linux Filesystems#NFS#Mounting#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full SK0-005 Practice