Omniscio

OmniscioGuidesDisk full or disk quota used up

Claude Code: Disk full (ENOSPC) or disk quota used up

This guide is about the disk Claude Code uses for itself, which is not always the disk your project is on. Read the directory in the message before deleting anything.

Last checked against Anthropic's documentation on November 26, 2026. By the Omniscio team. Updated .

What are the exact messages?

The command was not started: this computer's disk is full (ENOSPC) on the volume holding /tmp/claude-501 (Claude Code's temporary directory), so the file that captures command output could not be created there and nothing ran. Free space on that volume, or restart Claude Code with CLAUDE_CODE_TMPDIR set to a directory on another one, then retry. If this is the user's own computer, tell them before deleting anything to make room.
Disk full: this computer's volume holding /tmp/claude-501 (Claude Code's temporary directory) has 3 MB free, so whatever this command printed was lost and its own writes may have failed with "No space left on device". Free space on that volume, or restart Claude Code with CLAUDE_CODE_TMPDIR set to a directory on another one, then retry. If this is the user's own computer, tell them before deleting anything to make room.

Anthropic groups several line openings under this error: Disk full:, Disk quota used up: and Nearly out of inodes:. The current wording names the directory it is talking about.

The first form above means the command did not run at all. The second means it ran, exited with a nonzero code, and its output was lost.

Older wording, and the two version cutoffs, are further down. Before v2.1.305, a command that could not start because the disk was full returned only the operating system's own text, such as ENOSPC: no space left on device, open <path>.output.

What does it mean?

Claude Code saves each Bash and PowerShell command's output to a file under its temporary directory. When it cannot create that file, the command has nowhere to write, so it is not started and this result goes back to Claude.

When the command did start, the same lack of room shows up afterwards: it printed something, the output could not be saved, and its own writes may have failed with No space left on device.

Anthropic's advice is to free space, inodes or quota on the volume that holds that temporary directory.

Which directory, and which limit

On macOS and Linux, df -h <dir> shows the volume and how full it is, and df -i <dir> shows the free inodes. Use the directory the message names, as in df -i /tmp/claude-501.

On Windows, free space on the volume the message names, or move the temporary directory with the switch below. Anthropic gives no Windows equivalent of the two df commands.

The three limits need different cleanups. Space means delete files anywhere on that volume. Quota means delete your own files on that volume, even if it still shows free space. Inodes, the per-file entries a volume allocates, mean delete many files, because each one takes an inode whatever its size.

The opening is a guide, not a rule. Disk full: is usually space, but Anthropic also uses it for Disk full: a test write, a quota case. Disk quota used up: and disk quota is used up (EDQUOT) are quota, and Nearly out of inodes: is inodes.

What to do

  1. Read the directory in the message. Every current form names the temporary directory it means. If the message names none, it is one of the older forms below.
  2. Check space and inodes. On macOS and Linux, run df -h <dir> for space and df -i <dir> for inodes on that exact directory.
  3. Free the right thing. Space: delete files you do not need anywhere on the volume. Quota: delete your own files, even if it shows free space. Inodes: delete many files.
  4. Move the directory instead. Restart Claude Code with CLAUDE_CODE_TMPDIR set to a directory on a volume with room. Set it in your shell, user settings or managed settings; project and local settings ignore it.
  5. Run the command again. After either fix, have Claude run the command again.

The message carries its own caution: tell the person whose computer it is before deleting anything to make room. If the machine is yours, that is the warning to take seriously before you delete.

Older wording, same steps

Anthropic records two version notes. The first is the wording before v2.1.309. The steps are the same, and the older text is worth recognising because it may still be what you see:

  • Your disk quota is full on the filesystem with Claude Code's temp directory <dir> (EDQUOT)
  • The filesystem with Claude Code's temp directory <dir>, or your disk quota on it, is full (ENOSPC)
  • Command output was lost: the temp filesystem at <dir> is full, or ... is out of inodes
  • The command was not started: this computer's disk is full (ENOSPC), so the file that captures command output could not be created. Nothing ran., or the same with (EDQUOT)

That last older form names no directory. Anthropic says to look on the volume holding your system temp directory, such as /tmp, or the directory set in CLAUDE_CODE_TMPDIR.

The second note is narrower: before v2.1.305, a command that could not start because the disk was full returned only the operating system's text, for example ENOSPC: no space left on device, open <path>.output.

How do I know it is fixed?

  • The command runs and its output comes back instead of a disk message.
  • df -h on the named directory shows room, or df -i shows free inodes, whichever limit you hit.
  • After a CLAUDE_CODE_TMPDIR change, a new command's output is saved normally.

Where these answers come from

Common questions

What does Disk full mean in Claude Code?

The volume holding Claude Code's temporary directory has no room left, or no inodes, or your quota on it is used up. Claude Code writes each command's output to a file there, so with no room the command cannot start or its output is lost. The current message names that directory.

Is my project's disk the one that matters?

Not necessarily. The message names the directory Claude Code uses for temporary files, which is under the system temp directory unless you set CLAUDE_CODE_TMPDIR. That can be a different volume from the one your project sits on, so a project drive with free space can still fail this way.

Why does it say full when the disk shows free space?

Two other limits read as full. A quota can be used up while the volume shows free space, which is the EDQUOT case and needs your own files deleted. Inodes can run out while space remains, because every file takes one however small it is, which is the Nearly out of inodes case.

How do I move Claude Code's temporary directory?

Restart Claude Code with CLAUDE_CODE_TMPDIR set to a directory on a volume with room, then have Claude run the command again. Set it in your shell, user settings or managed settings; project and local settings ignore it.