简体   繁体   中英

No space left on device- Ubuntu Issues

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

在此处输入图片说明

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

What could be the issue?

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 -hdu -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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM