CompTIA A+ Core 2 (220-1202)Operating SystemsHard
A system administrator needs to configure a Linux server to automatically mount a shared network drive every time the server boots up, ensuring the data is always accessible. Which configuration file should the administrator edit to achieve this persistent mount?
- A/etc/samba/smb.conf
- B/etc/resolv.conf
- C/etc/network/interfaces
- D/etc/fstab
Show answer & explanationAnswer & explanation
Correct answer: D. /etc/fstab
The `/etc/fstab` file (file system table) is a crucial Linux system configuration file that defines how disk partitions, various other block devices, or remote filesystems are mounted into the file system.
Why the other options are wrong
- A. `/etc/samba/smb.conf` configures Samba file sharing, defining what is shared, not what is mounted by the client.
- B. `/etc/resolv.conf` configures DNS resolvers, not filesystem mounts.
- C. `/etc/network/interfaces` configures network interfaces, not automatic mounts.
/etc/fstab
A system configuration file in Linux that contains descriptive information about the various filesystems the system can mount.
- Used to define static mount points for local and network filesystems.
- Each line in `fstab` represents a filesystem to be mounted.
- Includes options for filesystem type, mount options, and dump/fsck settings.
Memory trick: Linux Files Serve The Administrator's Boot Needs.