Error Codes Wiki

Linux Error ENOSPC (errno 28) — No Space Left on Device Fix

Criticallinux errno

About Linux Error ENOSPC (errno 28)

Linux errno 28 ENOSPC means the disk is full. No more data can be written until space is freed. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.

Here are the key things to understand: Error: ENOSPC (errno 28). Message: No space left on device. Disk partition is at 100% capacity. Affects all write operations on that partition. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.

The most common reasons this occurs include: Log files consumed all disk space. Docker images filled the disk. /tmp or /var partition is full. Inodes exhausted (many small files). Identifying the root cause is the first step toward finding the right solution.

To resolve this, follow these recommended steps: Check disk usage: df -h. Find large files: du -sh /* | sort -rh | head -20. Clean old logs: sudo journalctl --vacuum-time=3d. Clean Docker: docker system prune -a. Check inode usage: df -i. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.

This article is part of our Linux Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.

Quick Answer

Disk shows space but still ENOSPC?

You may be out of inodes. Check with df -i.

Overview

Linux errno 28 ENOSPC means the disk is full. No more data can be written until space is freed.

Key Details

  • Error: ENOSPC (errno 28)
  • Message: No space left on device
  • Disk partition is at 100% capacity
  • Affects all write operations on that partition

Common Causes

  • Log files consumed all disk space
  • Docker images filled the disk
  • /tmp or /var partition is full
  • Inodes exhausted (many small files)

Steps

  1. 1Check disk usage: df -h
  2. 2Find large files: du -sh /* | sort -rh | head -20
  3. 3Clean old logs: sudo journalctl --vacuum-time=3d
  4. 4Clean Docker: docker system prune -a
  5. 5Check inode usage: df -i

Tags

linuxlinux-errnolinux errno 28ubuntuterminal

More in Linux Errno

Frequently Asked Questions

You may be out of inodes. Check with df -i.