{
  "slug": "tune2fs",
  "term": "tune2fs",
  "aliases": [
    "ext filesystem parameter utility"
  ],
  "definition": "tune2fs is an e2fsprogs utility for inspecting and changing supported parameters of ext2, ext3 and ext4 filesystems.",
  "note": "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. [manual] [implementation]\n\nThe -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. [manual] [checker]\n\nA 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. [manual]\n\nThe -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. [manual] [implementation]\n\nIn 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. [observation]",
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-05",
  "advantages": [
    {
      "text": "Supports querying existing settings without requesting a parameter change.",
      "citationIds": [
        "manual"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Feature and UUID changes have feature-dependent restrictions and can require broader metadata updates; some writable paths can replay a pending journal.",
      "citationIds": [
        "implementation"
      ]
    }
  ],
  "related": [
    "ext4",
    "e2fsck",
    "statvfs"
  ],
  "citations": [
    {
      "id": "manual",
      "title": "e2fsprogs v1.47.0: tune2fs options and maintenance fields",
      "url": "https://raw.githubusercontent.com/tytso/e2fsprogs/v1.47.0/misc/tune2fs.8.in",
      "accessed": "2026-12-05"
    },
    {
      "id": "implementation",
      "title": "e2fsprogs v1.47.0: tune2fs field assignments, reserve updates and journal recovery",
      "url": "https://raw.githubusercontent.com/tytso/e2fsprogs/v1.47.0/misc/tune2fs.c",
      "accessed": "2026-12-05"
    },
    {
      "id": "checker",
      "title": "e2fsprogs v1.47.0: e2fsck check-skipping decision",
      "url": "https://raw.githubusercontent.com/tytso/e2fsprogs/v1.47.0/e2fsck/unix.c",
      "accessed": "2026-12-05"
    },
    {
      "id": "observation",
      "title": "Hesela: editable maintenance fields on disposable ext4 image files",
      "url": "https://hesela.dev/research/tune2fs-fields/README.md",
      "accessed": "2026-12-05"
    }
  ],
  "provenance": [
    "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."
  ]
}
