CompTIA A+ Core 2 (220-1202)Operating SystemsHard
A technician needs to configure a Linux server to automatically mount a network share at boot time. The network share uses the NFS protocol. Which configuration file should the technician edit to ensure the NFS share is mounted persistently?
- A/etc/fstab
- B/etc/samba/smb.conf
- C/etc/exports
- D/etc/network/interfaces
Show answer & explanationAnswer & explanation
Correct answer: A. /etc/fstab
The /etc/fstab file (file system table) is the standard configuration file in Linux that defines how file systems, including network shares like NFS, are mounted automatically at system startup. Each line specifies a file system, mount point, type, options, and dump/pass values.
Why the other options are wrong
- B. /etc/samba/smb.conf is the configuration file for the Samba server, used for SMB/CIFS shares, not NFS.
- C. /etc/exports is used on an NFS server to define which directories are exported and to whom, not for mounting client-side shares.
- D. /etc/network/interfaces configures network interfaces, not file system mounts.
/etc/fstab
A system configuration file in Linux that lists all available disk partitions and network shares, and how they should be mounted (or unmounted) when the system starts or when the mount command is executed.
- Each line describes a single mountable file system.
- Includes file system type, mount point, options, etc.
- Crucial for persistent storage and network mounts.
Memory trick: FSTAB Facilitates Storing All Boot Mounts.