Verify fstab syntax, mount targets, and referenced devices
Build a paste-ready command, then review its compatibility and effects before running it.
sudo findmnt --verify --verbosecautionrequires privileges Compatibility
LinuxVerified for Linux using bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementsfindmntfindmnt must be installed and available on PATH.Elevated accessReview the exact scope before using an elevated account.
Version supportfindmnt Current supported releasesVerified for linux using bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signals/Representative successful output; values vary with the selected target and system state.
Known errorsfindmnt: command not foundfindmnt is missing or is not available on PATH.Permission deniedThe current identity does not have the required access.
Verifysudo findmnt --verify --verboseRe-run the corresponding read-only inspection and confirm the intended state.Rollback noteNo universal automatic rollback is available. Capture the current state and use the tool-specific recovery procedure before applying changes.
Command breakdown
01sudoPrivilege elevationRuns the following command with elevated privileges after authorization.
02findmntCommandRuns the findmnt stage of this one-liner.
03--verifyOptionConfigures findmnt with the --verify option.
04--verboseOptionConfigures findmnt with the --verbose option.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
sudo findmnt --verify --verbose
Example output
/
[ ] target exists
[ ] source /dev/mapper/vg-root exists
[ ] FS type is ext4
/data
[W] source UUID=14aa-22bc not found
0 parse errors, 1 error, 1 warning
Illustrative output — exact values vary by system and data.
Official sources