exam questions

Exam SK0-005 All Questions

View all questions & answers for the SK0-005 exam

Exam SK0-005 topic 1 question 129 discussion

Actual exam question from CompTIA's SK0-005
Question #: 129
Topic #: 1
[All SK0-005 Questions]

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?

  • A. mkdir /home
  • B. umount nfsserver:/home
  • C. rmdir nfsserver:/home/dev/sda2
  • D. mount /home
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kx7tg4xu
10 months, 2 weeks ago
Selected Answer: D
“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.
upvoted 1 times
...
tame_rabbit
1 year ago
Selected Answer: 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.
upvoted 1 times
...
MrS
2 years ago
Selected Answer: 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.
upvoted 2 times
...
kloug
2 years, 3 months ago
Ɓbbbbbbbbbb
upvoted 1 times
...
lordguck
2 years, 7 months ago
D: is the first thing to try. A correct fstab entry and /home folder exists..
upvoted 1 times
...
Timock
2 years, 10 months ago
Selected Answer: 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/
upvoted 1 times
Pongsathorn
2 years, 8 months ago
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/
upvoted 1 times
...
lordguck
2 years, 7 months ago
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
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...