Check filesystems registered in /etc/fstab according to their pass numbers.
Use the fsck front end without listing each device manually.
Which option is appropriate?
fsck -A scans the filesystems listed in /etc/fstab. Pass numbers and filesystem-specific rules determine ordering and eligibility.
Detailed explanation
fsck -lIncorrect. -l is not the option that scans all fstab filesystems.
Incorrect. -l is not the option that scans all fstab filesystems.
fsck -iIncorrect. -i is not the all-filesystems option.
Incorrect. -i is not the all-filesystems option.
fsck -sIncorrect. -s controls serialization and does not select fstab entries.
Incorrect. -s controls serialization and does not select fstab entries.
fsck -ACorrect. fsck -A checks the filesystems described by /etc/fstab.
Correct. fsck -A checks the filesystems described by /etc/fstab.
Try it yourself
An example you can run in a temporary verification environment.
fsck -ANExpected result
-Nにより実行せず、fstabから選ばれる検査コマンドを表示するKey points
- -A scans fstab
- Pass numbers affect order
- -N can be used for a dry run
Notes
- Environment: util-linux fsck 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.