After editing /etc/fstab, mount all entries that are not marked noauto without rebooting.
Do not specify an individual mount point.
Which command is appropriate?
mount -a processes eligible entries in /etc/fstab and skips entries marked noauto. Check syntax and device reachability before applying it.
Detailed explanation
mount -lIncorrect. mount -l lists mounted filesystems.
Incorrect. mount -l lists mounted filesystems.
umount -aIncorrect. umount -a unmounts filesystems.
Incorrect. umount -a unmounts filesystems.
mount -aCorrect. mount -a mounts all eligible fstab entries.
Correct. mount -a mounts all eligible fstab entries.
blkid -aIncorrect. blkid -a is not the fstab mounting operation.
Incorrect. blkid -a is not the fstab mounting operation.
Try it yourself
An example you can run in a temporary verification environment.
mount --fake --all --verboseExpected result
fake指定により実際にはマウントせず、fstabの処理予定を表示するKey points
- -a means all
- fstab is read
- noauto entries are skipped
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.