error: unable to write file / fatal: write error: No space left on device Git Origin: Build & delivery OSI layer 7 · Application Last updated 25 Nov 2026

fatal: write error: No space left on device

The disk is full while Git writes objects.

Exact message you may see fatal: write error: No space left on deviceerror: unable to write file No space leftgit no space left on deviceerror: unable to write file src/big.bin fatal: write error: No space left on device fatal: unable to checkout working tree
Seen on: Git Linux

Meaning

Free space, then git gc and re-run. Check df -h and large untracked build folders.

Common causes

  • Disk full
  • Quota hit
  • Huge repo checkout

⚡ Quick fix

  1. Free disk space
  2. git gc --prune=now
  3. Clean build artifacts git clean -fdx (carefully)

Detailed fix by platform

Shell

  1. bash
    df -h .
    git gc --prune=now

How to diagnose

  1. Disk — free?
  2. Quota — ok?
  3. Clean — safe?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):

/var/log full: syslog file huge — No space left on device /var/log/syslog (Linux)/var/log full: syslog…Auto packing the repository in background for optimum performance — Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. (Git)Auto packing the repo…error: cannot update the ref 'HEAD': unable to append to logs — error: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Permission denied (Git)error: cannot update …error: could not write index (stash) — error: could not write index / Cannot save the current index state (Git)error: could not writ…error: inflate: data stream error / loose object is corrupt — error: inflate: data stream error (incorrect header check) error: unable to unpack header (Git)error: inflate: data …error: Unpack failed / remote unpack failed: unable to create temporary object directory — remote: error: unable to create temporary object directory (Git)error: Unpack failed …EXT4-fs error: Remounting filesystem read-only — EXT4-fs (sda1): Remounting filesystem read-only / blk_update_request: I/O error (Linux)EXT4-fs error: Remoun…fatal: pack-objects died of signal 9 / out of memory — error: pack-objects died of signal 9 fatal: the remote end hung up unexpectedly (Git)fatal: pack-objects d…error: un…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.