System Management
After adding a new entry to /etc/fstab, how can an administrator test it without rebooting?
Show the answer
Correct answerA. Run mount -a, which mounts every listed filesystem that is not already mounted
AWhy this is right: mount -a tries every fstab entry not yet mounted, except noauto ones, so a bad new entry shows up now.
BWhy not this: mount -l lists currently mounted filesystems; it does not check fstab entries.
CWhy not this: swapon -a activates only the swap entries in fstab.
DWhy not this: fsck -A checks the filesystems for errors; it does not mount them.
mount -a processes /etc/fstab and mounts all entries not already mounted, except those marked noauto. This exposes typos in a new entry before the next boot, which is why it is the standard check.