Difficulty: Easy
Correct Answer: /etc/fstab
Explanation:
Introduction / Context:
Persistent mounts in Linux are defined centrally so that disks, partitions, and network filesystems are mounted consistently at boot. Understanding the right file to edit is crucial for servers and workstations to ensure reliable storage access.
Given Data / Assumptions:
Concept / Approach:
/etc/fstab (filesystem table) is the canonical configuration listing device identifiers (UUIDs or block paths), mount points, filesystem types, mount options, and fsck order. Contents are read by system startup scripts and by mount -a to mount all configured entries that are not marked noauto.
Step-by-Step Solution:
Open /etc/fstab as root to define persistent mounts.Use UUID= or LABEL= for stable device identification.Apply appropriate options (e.g., defaults, noatime, _netdev).Test with mount -a and verify with mount or findmnt.
Verification / Alternative check:
Run findmnt or cat /proc/mounts to confirm active mounts. System logs (journalctl) show boot-time mount success or failures tied to fstab entries.
Why Other Options Are Wrong:
/etc/mount.sys and /etc/filesys are not standard./etc/sysconfig stores various distro settings but not the master mount table.
Common Pitfalls:
Final Answer:
/etc/fstab
Discussion & Comments