Keep a removable-media entry in fstab.
Do not mount it at boot or through mount -a; mount it only when explicitly requested.
Which mount option should be added?
noauto excludes an fstab entry from mount -a and normal automatic processing, while the definition remains available for an explicit mount.
Detailed explanation
autoIncorrect. auto is the default behavior for automatic mounting.
Incorrect. auto is the default behavior for automatic mounting.
noautoCorrect. noauto prevents automatic and mount -a mounting.
Correct. noauto prevents automatic and mount -a mounting.
remountIncorrect. remount changes options on an already mounted filesystem.
Incorrect. remount changes options on an already mounted filesystem.
bindIncorrect. bind exposes an existing directory at another path.
Incorrect. bind exposes an existing directory at another path.
Try it yourself
An example you can run in a temporary verification environment.
mount --fake --all --verboseExpected result
noautoエントリが一括処理から除外される。実マウントは行わないKey points
- noauto excludes bulk processing
- The fstab entry remains
- Explicit mounting is still possible
Notes
- Environment: util-linux mount 2.39以降
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.