nerdexam
Linux_Foundation

LFCS · Question #875

What does the command mount -a do?

The correct answer is D. It mounts all filesystems listed in /etc/fstab which have the option auto set. mount -a instructs the system to mount all filesystems listed in /etc/fstab that do not have the noauto option set. Filesystems with the auto option (which is the default if neither auto nor noauto is explicitly listed) will be mounted. It is commonly used during boot or after…

Submitted by deeparc· Apr 18, 2026Storage Management

Question

What does the command mount -a do?

Options

  • AIt mounts all available filesystems onto the current directory.
  • BIt shows all mounted filesystems.
  • CIt mounts all user mountable filesystems for the current user.
  • DIt mounts all filesystems listed in /etc/fstab which have the option auto set.
  • EIt mounts all filesystems listed in /etc/fstab which have the option noauto set.

How the community answered

(46 responses)
  • A
    7% (3)
  • B
    2% (1)
  • C
    2% (1)
  • D
    89% (41)

Explanation

mount -a instructs the system to mount all filesystems listed in /etc/fstab that do not have the noauto option set. Filesystems with the auto option (which is the default if neither auto nor noauto is explicitly listed) will be mounted. It is commonly used during boot or after editing /etc/fstab to apply changes without rebooting. A is incorrect-it does not mount everything onto the current directory. B is the behavior of mount (with no arguments) or findmnt. C is incorrect; there is no user-specific auto-mount scope in this command. E is the opposite of the correct behavior.

Topics

#mount command#/etc/fstab#Filesystem management#Automatic mounting

Community Discussion

No community discussion yet for this question.

Full LFCS Practice