{
  "slug": "background-fsck",
  "term": "Background fsck",
  "aliases": [
    "background filesystem check"
  ],
  "definition": "Background fsck is a filesystem-specific consistency-checking mode that performs permitted repairs while the filesystem remains in use.",
  "note": "The 2002 BSD design uses a snapshot and kernel-assisted reclamation. [background2002] The FreeBSD 14.3 manual requires eligible soft-updates filesystems and stops background cleaning on unexpected errors. [freebsd143]\n\nFreeBSD 14.3 checks eligible file systems one at a time, after a startup delay that defaults to 60 seconds so large applications can start before the check takes disk bandwidth. A negative delay postpones the check indefinitely so it can be scheduled later. [fsck143] [rcconf143]\n\nDuring a background check the file system runs at about half its normal performance. Background checking covers only the most common abnormalities, so periodic foreground checks are still recommended. [tunefs143] [fsck143]",
  "status": "shipping",
  "advantages": [
    {
      "text": "Other system activity proceeds during the check, because background checking starts asynchronously.",
      "citationIds": [
        "fsck143"
      ]
    }
  ],
  "limitations": [
    {
      "text": "This is not a generic permission to run an arbitrary repair tool against a mounted filesystem.",
      "citationIds": [
        "background2002"
      ]
    },
    {
      "text": "Some errors can escape background checking and are found only by a foreground check.",
      "citationIds": [
        "fsck143"
      ]
    }
  ],
  "related": [
    "wafl-iron",
    "soft-updates",
    "snapshot",
    "filesystem-consistency-invariant",
    "sqck"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "background2002",
      "title": "McKusick. Running \"fsck\" in the Background. BSDCon 2002, pp. 55-64, sections 4-7.",
      "url": "https://static.usenix.org/events/bsdcon/mckusick/mckusick_html/index.html",
      "accessed": "2026-10-15"
    },
    {
      "id": "freebsd143",
      "title": "FreeBSD 14.3-RELEASE fsck_ffs(8): background checking, eligibility and exit status.",
      "url": "https://man.freebsd.org/cgi/man.cgi?query=fsck_ffs&sektion=8&manpath=FreeBSD+14.3-RELEASE",
      "accessed": "2026-10-22"
    },
    {
      "id": "hesela-soft",
      "title": "Hesela: Soft updates and metadata ordering",
      "url": "https://hesela.com/analyses/soft-updates-metadata-ordering/",
      "accessed": "2026-10-15"
    },
    {
      "id": "fsck143",
      "title": "FreeBSD 14.3-RELEASE fsck(8): background mode",
      "url": "https://man.freebsd.org/cgi/man.cgi?query=fsck&sektion=8&manpath=FreeBSD+14.3-RELEASE",
      "accessed": "2026-10-22"
    },
    {
      "id": "rcconf143",
      "title": "FreeBSD 14.3-RELEASE rc.conf(5): background_fsck and background_fsck_delay",
      "url": "https://man.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5&manpath=FreeBSD+14.3-RELEASE",
      "accessed": "2026-10-22"
    },
    {
      "id": "tunefs143",
      "title": "FreeBSD 14.3-RELEASE tunefs(8): soft updates journaling and background check cost",
      "url": "https://man.freebsd.org/cgi/man.cgi?query=tunefs&sektion=8&manpath=FreeBSD+14.3-RELEASE",
      "accessed": "2026-10-22"
    }
  ],
  "updated": "2026-10-22",
  "provenance": [
    "freebsd143 is the FreeBSD 14.3-RELEASE fsck_ffs(8) page, reread on the access date in the -B and -F options.",
    "fsck143 is the FreeBSD 14.3-RELEASE fsck(8) page, read in the description and the -B option.",
    "rcconf143 is the FreeBSD 14.3-RELEASE rc.conf(5) page, read in background_fsck and background_fsck_delay.",
    "tunefs143 is the FreeBSD 14.3-RELEASE tunefs(8) page, read in the -j option.",
    "One at a time comes from fsck143. 60 seconds and the negative delay come from rcconf143. About half comes from tunefs143."
  ]
}
