1

I am getting this error "OSError: [Errno 28] No space left on device" when I am writing files in a directory. I am downloading images programmatically from different sources and creating directories according to day wise. Its working well on windows though.

While checking inodes I got this

enter image description here

I tried different solution like deleting the deleting the junk file and tmp folder but still no success.

What could be the issue?

veerg404
  • 111
  • 1
  • 7
  • **DO NOT post images of code, data, error messages, etc.** - copy or type the text into the question. [ask] But your question is off topic anyway. [What topics can I ask about here?](https://stackoverflow.com/help/on-topic) – Rob Jun 18 '21 at 09:44

1 Answers1

0

inodes don't directly correlate with disk usage. Better use df -h to actually see, if your drive is full.

But as you get the error: Yep, it's full. Up to the brim.

You probably have some data some where that uses all that precious storage. Check your home directory with du -hs * | sort -h. This can take a moment, but it will show you the size of all files and directories in the current workdir (and sort it too).

Also directories to check would be /opt, /var and /tmp. Don't randomly delete stuff in /var though, if you don't know what you are doing.

I've listed /tmp here too, because you don't have listed it as a mount of the type tmpfs. You should fix that probably.

Malik
  • 878
  • 2
  • 9
  • 23
  • my drive is not full, it has a lot of space. Check https://ibb.co/cwvsHjy also by checking the directories (https://ibb.co/9s1q1hT) , its only the /var folder that is having files with bigger size like the log etc. Is it safe to delete file from this directory? – veerg404 Jun 18 '21 at 08:12
  • Ok, than i would ask you to update your question with an explanation. What you are actually doing, when you get this error. Also please check https://stackoverflow.com/a/6999259/3939085 for maybe some explanations. – Malik Jun 18 '21 at 08:20
  • question updated. I am downloading images programmatically within different directories – veerg404 Jun 18 '21 at 08:28