Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a weird inconsistency (although I'm probably just missing something quite basic). While running some script that generates small files on my I disk, I constantly get this error:

OSError: [Errno 28] No space left on device

But when I run df -h, I get:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              15G   12G  2.2G  85% /
udev                  502M  144K  502M   1% /dev
none                  502M     0  502M   0% /dev/shm
none                  502M   72K  502M   1% /var/run
none                  502M     0  502M   0% /var/lock
none                  502M     0  502M   0% /lib/init/rw

So am I low on disk-space or not?

Thanks for any input!

share|improve this question
Maybe the script filled up a filesystem, detected the error and removed the file(s) as part of its termination process. What files does the script try to write to? – Gilles Oct 11 '10 at 23:48
up vote 2 down vote accepted

You're probably out of inodes. Try df -i.

share|improve this answer
That's it! Thanks :) – Shmulik2004 Oct 12 '10 at 23:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .