tune2fs

Prev Next

This check uses the tune2fs Linux command to inspect filesystem status across multiple disk partitions. Issues reported by this check might be cleared upon reboot by the automatic file system check, or may be indicators of filesystem issues.

Applicable only to “ext2,” “ext3,” and “ext4” file systems.

Filesystem errors are common and usually not critical. If problem indications persist, run the command manually and investigate the output as listed below. Consider backing up important data stored in the filesystem. If the issues are critical, a full reinstall of the system through USB with the “format partitions” option will rebuild the filesystems (and wipe all existing data).

Command Executed

/sbin/tune2fs -l /dev/sda[n]

where n is in {1, 2, 3, 5, 7, 8}, and /dev/sda[n] is an ext2, ext3 or ext4 partition.

Example:

/sbin/tune2fs -l /dev/sda3

💡Tip

use parted -l if required, to identify partitions and partition types.

Issue Identification

  1. Navigate to Tracking :: System :: System Check and look for file system corruption events.

    Summary Message: File Corrupted.

  2. Drill down into the system check entry on the System Check Summary Table or click Last Check.

  3. Check for tune2fs error count in the Command Table.

Issue Types

  • Filesystem state - clean, not clean, clean with errors

  • Filesystem error count - 1 to n

  • First error - time, function, line, inode, block, error

  • Last error - time, function, line, inode, block, error

Example Expected Output

root@nodegrid:~# /sbin/tune2fs -l /dev/sda3
tune2fs 1.46.5 (30-Dec-2021)
Filesystem volume name:   <none>
Last mounted on:          /etc
Filesystem UUID:          438e59f0-df4f-43f0-b273-7d10f491a528
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file dir_nlink extra_isize
Filesystem flags:         signed_directory_hash
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              24672
Block count:              98305
Reserved block count:     4914
Overhead clusters:        11837
Free blocks:              59622
Free inodes:              21613
First block:              1
Block size:               1024
Fragment size:            1024
Reserved GDT blocks:      256
Blocks per group:         8192
Fragments per group:      8192
Inodes per group:         2056
Inode blocks per group:   514
Flex block group size:    16
Filesystem created:       Tue Jan 28 19:07:13 2025
Last mount time:          Thu Mar 27 15:53:20 2025
Last write time:          Thu Mar 27 15:53:20 2025
Mount count:              1
Maximum mount count:      1
Last checked:             Thu Mar 27 15:53:18 2025
Check interval:           0 (<none>)
Lifetime writes:          43 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     32
Desired extra isize:      32
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      12798bd8-9bb7-4867-aab9-1771533f1c4c
Journal backup:           inode blocks

Example Errors Output

tune2fs -l /dev/sda5
tune2fs 1.46.5 (30-Dec-2021)
Filesystem volume name:   <none>
Last mounted on:          /home
Filesystem UUID:          32de7354-15cd-423f-a1db-2225e19308dc
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index fast_commit filetype needs_recovery extent 64bit flex_bg inline_data sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
Filesystem flags:         signed_directory_hash 
Default mount options:    journal_data_ordered user_xattr acl
Filesystem state:         clean with errors
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              27926528
Block count:              111680256
Reserved block count:     5400021
Overhead clusters:        1803444
Free blocks:              52020337
Free inodes:              27316555
First block:              0
Block size:               4096
Fragment size:            4096
Group descriptor size:    64
Reserved GDT blocks:      970
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
RAID stride:              32706
Flex block group size:    16
Filesystem created:       Wed Jul 31 15:21:52 2013
Last mount time:          Wed Nov  1 06:49:34 2023
Last write time:          Wed Nov  1 17:51:51 2023
Mount count:              1
Maximum mount count:      30
Last checked:             Wed Nov  1 06:48:22 2023
Check interval:           0 (<none>)
Lifetime writes:          7966 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       1707897
Default directory hash:   half_md4
Directory Hash Seed:      c071d784-b7a1-449b-9da6-f9ff3c9991a7
Journal backup:           inode blocks
FS Error count:           3
First error time:         Wed Nov  1 06:51:02 2023
First error function:     ext4_map_blocks
First error line #:       577
First error inode #:      1573047
First error block #:      808334130
First error err:          EFSCORRUPTED
Last error time:          Wed Nov  1 17:51:51 2023
Last error function:      ext4_map_blocks
Last error line #:        577
Last error inode #:       9438983
Last error block #:       172100162
Last error err:           EFSCORRUPTED
Checksum type:            crc32c
Checksum:                 0x044c2809.