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…
Question
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)- A7% (3)
- B2% (1)
- C2% (1)
- D89% (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
Community Discussion
No community discussion yet for this question.