When you get a message that a disk is full, first find out which filesystem is affected.

When a filesystem is full, you find out the hard way. For me, it always happens when I’m editing a file in vi. I try writing the file and I get the message:

Write failed, filesystem is full!

Or I’m just typing away, and suddenly I get placed in the colon prompt with the message:

No space left on device

These two messages may sound like the same thing, but they signify space problems in different parts of the filesystem.

When you get an error message (Write failed, filesystem is full!) trying to write a file, it means that the filesystem in which the file resides is out of space. For example, if you’re trying to write the file to /work/sysbook/ch01, it means that the filesystem /work or /work/sysbook is full.

When this happens, how can you save your work? Well, one way is to try to clear ...

Get WYNTK: UNIX System Admininistrator now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.