tune2fs · shipping · also ext filesystem parameter utility

tune2fs

tune2fs is an e2fsprogs utility for inspecting and changing supported parameters of ext2, ext3 and ext4 filesystems.

Related Observatory article: Read on hesela.com

The -l option displays recorded parameters; it does not establish completed structural checking. Combining it with mutating options does not make an invocation read-only. [1] [2]

The -c option sets a mount-count threshold, while -C changes the recorded current count. The -i option configures a check interval and -T changes the recorded last-check time. These fields influence e2fsck when invoked; they do not install a scheduler or prove that checking ran. In v1.47.0, the checker considers other conditions as well, including forced checking and filesystem error state. [1] [3]

A documented use of -T is to record a successful check of a consistent LVM snapshot on the original filesystem. That is an administrative update, not evidence that the original device was scanned or that later writes were covered. Keep the snapshot identity, its time and the checker transcript. The timestamp argument uses local time; the retained probe fixes TZ=UTC. [1]

The -m and -r options change the reserved-block percentage or count, not filesystem geometry. The -u and -g settings control who may use that reserve. Allocation policy is distinct from device size and lower-layer free space. [1] [2]

In two controlled 32 MiB image runs, maintenance fields changed without the probe invoking e2fsck; changing reserves left image size and block geometry unchanged. The evidence covers deliberate administrative edits, not a damaged filesystem or a successful repair. [4]

Relations

related
Ext4, e2fsck, statvfs

Advantages

  • Supports querying existing settings without requesting a parameter change. [1]

Limitations

  • Feature and UUID changes have feature-dependent restrictions and can require broader metadata updates; some writable paths can replay a pending journal. [2]

Citations

  1. e2fsprogs v1.47.0: tune2fs options and maintenance fields (accessed 2026-12-05)
  2. e2fsprogs v1.47.0: tune2fs field assignments, reserve updates and journal recovery (accessed 2026-12-05)
  3. e2fsprogs v1.47.0: e2fsck check-skipping decision (accessed 2026-12-05)
  4. Hesela: editable maintenance fields on disposable ext4 image files (accessed 2026-12-05)
Sources & caveats
  • Version-pinned e2fsprogs v1.47.0 source review, accessed 2026-12-05; not a claim about every version.
  • Controlled native demonstration: two newly created, unmounted 32 MiB regular-file images on one host; commands, versions, hashes and raw listings accompany the results.
  • No block devices, mounts, fault injection or completed checker execution; repeated fixtures are not a reliability population.

JSON: /data/terms/tune2fs.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. tune2fs. Hesela. 2026-12-05. https://hesela.dev/terms/tune2fs/