CompTIA Linux+ (XK0-005) — Question 151
A Linux administrator rebooted a server. Users then reported some of their files were missing. After doing some troubleshooting, the administrator found one of the filesystems was missing. The filesystem was not listed in /etc/fstab and might have been mounted manually by someone prior to reboot. Which of the following would prevent this issue from reoccurring in the future?
Answer options
- A. Sync the mount units.
- B. Mount the filesystem manually.
- C. Create a mount unit and enable it to be started at boot.
- D. Remount all the missing filesystems.
Correct answer: C
Explanation
Creating a mount unit and enabling it to start at boot ensures that the filesystem is automatically mounted during the system's startup process, preventing future occurrences of it being absent. The other options either involve manual actions that do not provide a permanent solution (B and D) or do not address the need for the filesystem to be automatically mounted (A).