ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 149 - SK0-005 discussion

Report
Export

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?

A.
mkdir /home
Answers
A.
mkdir /home
B.
umount nfsserver:/home
Answers
B.
umount nfsserver:/home
C.
rmdir nfsserver:/home/dev/sda2
Answers
C.
rmdir nfsserver:/home/dev/sda2
D.
mount /home
Answers
D.
mount /home
Suggested answer: B

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 entry12. 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 busy3.

Reference: 1 https://askubuntu.com/questions/374870/home-directory-not-beingcreated 2 https://www.techrepublic.com/article/how-to-properly-automount-a-drive-in-ubuntulinux/ 3 https://serverfault.com/questions/587855/cannot-find-home-directory-on-linux-server

asked 02/10/2024
Alex Luna
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first