Exam SK0-005 All QuestionsBrowse all questions from this exam
Question 115

A technician is working on a Linux server. The customer has reported that files in the home directory are missing. The /etc/fstab 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?

    Correct Answer: D

    The output of the 'df -h /home' command indicates that the /home directory is currently mounted on /dev/sda2 rather than on the NFS share specified in /etc/fstab. This suggests that the NFS share has not been properly mounted. The first step to resolving this issue is to ensure that the NFS share specified in /etc/fstab is mounted correctly. Using the 'mount /home' command will attempt to mount the NFS share to the /home directory based on the configuration in /etc/fstab, which should restore access to the missing files.

Discussion
MrSOption: B

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.

tame_rabbitOption: D

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.

kloug

Ɓbbbbbbbbbb

lordguckOption: D

D: is the first thing to try. A correct fstab entry and /home folder exists..

TimockOption: A

The fstab (/etc/fstab) (or file systems table) file is a system configuration file on Debian systems. The fstab file typically lists all available disks and disk partitions, and indicates how they are to be initialized or otherwise integrated into the overall system's file system. The etc/fstab file has /home as the DIR.. but when a df /home is asked for there is no /home directory underneath... only /dev/sda2. Therefore, we would need to mkdir a /home under the /home directory. # <file system> <dir> <type> <options> <dump> <pass> 10.10.0.10:/backups /var/backups nfs defaults 0 0 https://linuxize.com/post/how-to-mount-an-nfs-share-in-linux/

Pongsathorn

Run the mount command in one of the following forms to mount the NFS share: mount /var/backups mount 10.10.0.10:/backups Copy The mount command, will read the content of the /etc/fstab and mount the share. Next time you reboot the system the NFS share will be mounted automatically. https://linuxize.com/post/how-to-mount-an-nfs-share-in-linux/

lordguck

A is wrong as /home exists! if you use df -h /blah and the folder does not exists, you get a "directory not found" reply