改善 / v2.1.309
ディスク容量不足時のエラー表示改善
CHANGELOG 原文(英語)
Improved disk-full handling: a Bash command cut off by a full disk now says so and names the folder to free up, and starting on a full temp volume prints a clear message, not a raw ENOSPC error 公式の変更履歴を開く ↗ 日本語での補足
ディスク容量不足時の処理を改善。ディスク満杯で中断されたBashコマンドはその旨と空き容量を確保すべきフォルダ名を表示し、tempボリュームが満杯の状態で起動すると生のENOSPCエラーではなく分かりやすいメッセージを表示するように変更。
ドキュメント
ドキュメントの抜粋(参考訳)
ディスクがいっぱい、またはディスククォータを使い切っている
Claude Codeの一時ディレクトリを保持しているボリュームの空き容量、inode、またはディスククォータを確保してください。コマンドの結果に含まれるDisk full:、Disk quota used up:、またはNearly out of inodes:で始まる行が、そのディレクトリの名前を示します。
Claude Codeは、BashおよびPowerShellの各コマンドの出力を、そのディレクトリ下のファイルに保存します。ボリュームまたはそこでのクォータが満杯でそのファイルを作成できない場合、コマンドは開始されず、Claudeが読む結果は次のようになります。
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:、Disk quota used up:、Nearly out of inodes:というメッセージは、実行されて非ゼロの終了コードで終了したコマンドの後に続きます。例:
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.
対処方法:
- macOSとLinuxでは、シェルで
df -h <dir>を実行すると、どのボリュームがそのディレクトリを保持していて、どのくらい満杯かがわかります。df -i <dir>は空いているinodeの数を示します。<dir>はメッセージが示すディレクトリで、たとえばdf -i /tmp/claude-501のように指定します Disk full: this computer's volumeまたはdisk is full (ENOSPC): そのボリューム上のどこかにある不要なファイルを削除してくださいDisk quota used up:、disk quota is used up (EDQUOT)、またはDisk full: a test write: 空き容量があるように見えても、そのボリューム上の自分のファイルを削除してくださいNearly out of inodes:: そのボリューム上の多数のファイルを削除してください。サイズにかかわらず1つのファイルが1つのinodeを使うため、重要なのはサイズではなく数です- または、
CLAUDE_CODE_TMPDIRを空き容量のあるボリューム上のディレクトリに設定してClaude Codeを再起動してください - その後、Claudeにコマンドを再実行させてください
v2.1.309より前は、メッセージは次のように表示されていましたが、対処方法は同じです。
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または... is out of inodesThe command was not started: this computer's disk is full (ENOSPC), so the file that captures command output could not be created. Nothing ran.、または(EDQUOT)版の同文。この形式はディレクトリ名を示しません。システムの一時ディレクトリ(/tmpなど)またはCLAUDE_CODE_TMPDIRで設定したディレクトリのボリュームを確認してください
v2.1.305より前は、ディスクが満杯でClaude Codeがコマンドを開始できなかった場合、オペレーティングシステムのエラーテキストだけが返されていました。そのテキストはたとえばENOSPC: no space left on device, open <path>.outputのようなものでした。
取得日 · 2026-11-20