CompTIA A+ Core 2 (220-1202)Operating SystemsMedium
A system administrator needs to configure a Linux server to automatically mount a specific network share from a remote server at boot time. This share should be accessible to all users. Which configuration file should the administrator edit to achieve this persistent mount?
- A/etc/samba/smb.conf
- B/etc/fstab
- C/etc/network/interfaces
- D/boot/grub/grub.cfg
Show answer & explanationAnswer & explanation
Correct answer: B. /etc/fstab
The /etc/fstab file (file system table) is used to define how disk partitions, block devices, or remote network shares should be mounted into the file system automatically at system boot.
Why the other options are wrong
- A. /etc/samba/smb.conf is for configuring Samba (SMB/CIFS) shares *exported by* the Linux server, not for mounting remote shares.
- C. /etc/network/interfaces configures network interfaces, not file system mounts.
- D. /boot/grub/grub.cfg is the GRUB bootloader configuration file, unrelated to file system mounts.
/etc/fstab
A system configuration file in Linux that defines the file systems to be mounted automatically at boot time, including local partitions and network shares.
- Each line specifies a mount entry with source, mount point, file system type, options, dump, and pass values.
- Crucial for persistent storage access.
- Incorrect entries can prevent the system from booting.
Memory trick: FSTAB is the FILE SYSTEM TABLE for mounts.