Tweak ext2/3/4 superblock settings to control checks, labels, UUIDs and reserved space with a single tool. 18.05.2026 | reading time: 3 min Need to change filesystem-level settings without reformatting? `tune2fs` edits the ext2/3/4 superblock: adjust check intervals, maximum mount counts, volume label, UUID and reserved-blocks percentage to tune reliability and behavior. Example: change mount-count and interval Start by inspecting the superblock, then change the allowed mount count and the check interval, and verify the result with `tune2fs` listing: ```sudo tune2fs -l /dev/sdb1 Filesystem volume name: Last mounted on: /mnt/data Filesystem UUID: 12345678-9abc-def0-1234-56789abcdef0 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent sparse_super large_file Block count: 5242880 Block size: 4096 Blocks per group: 32768 Inodes per group: 8192 Mount count: 5 Maximum mount count: 30 Last checked: Mon Apr 12 10:15:02 2026 Check interval: 15552000 (180 days) sudo tune2fs -c 20 -i 7d /dev/sdb1 sudo tune2fs -l /dev/sdb1 Mount count: 5 Maximum mount count: 20 Check interval: 604800 (7 days) ``` Options worth knowing Useful flags include `-l` to list the superblock; `-c` to set the maximum mount count; `-i` to set the time between automatic checks; `-L` to change the volume label; `-U` to set a new UUID; `-m` to change the reserved-blocks percentage; `-e` to change the behavior on errors; `-j` to add a journal to an ext2 fs; and `-E` for extended low-level options. When to be careful Some changes are safe on a mounted filesystem, others are not: changing UUID or label can break `fstab`, adjusting reserved blocks affects capacity for root-only maintenance, and certain operations are best performed on an unmounted or readonly filesystem after running `e2fsck` to avoid corruption. Companion commands Manage and inspect ext filesystems together: use `e2fsck` to repair, `dumpe2fs` to dump superblock details, `blkid` to probe UUIDs and types, and `lsblk` to relate device names to mounts before running `tune2fs` to avoid mistakes. One final thought `tune2fs` is a focused, powerful tool for filesystem-level tuning; learn its flags, test on noncritical volumes, and use companion tools for safety — and if you want to deepen Linux skills consider certifications like CompTIA Linux+ or LPIC-1 and intensive exam prep at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. filesystem utilities storage