Show ext filesystem check counters
Build a paste-ready command, then review its compatibility and effects before running it.
tune2fs -l <device> | rg 'Mount count|Check interval|Last checked'Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementstune2fstune2fs must be installed and available on PATH.
Version supporttune2fs Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsMount count: 12Representative successful output; values vary with the selected target and system state.
Known errorstune2fs: command not foundtune2fs is missing or is not available on PATH.
Verifytune2fs -l {{device}} | rg 'Mount count|Check interval|Last checked'The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01tune2fsCommandRuns the tune2fs stage of this one-liner.
02-lOptionConfigures tune2fs with the -l option.
03<device>ParameterA value supplied in the Fill parameters section.
04|PipelinePasses the output on the left to the command on the right.
05rgCommandRuns the rg stage of this one-liner.
06'Mount count|Check interval|Last checked'ArgumentPasses 'Mount count|Check interval|Last checked' to rg.
Example input
tune2fs -l /dev/sda | rg 'Mount count|Check interval|Last checked'
Example output
Mount count: 12
Maximum mount count: -1
Last checked: Fri Jul 10 09:14:03 2026
Check interval: 0 (<none>)
Illustrative output — exact values vary by system and data.
Official sources