LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   my root partition becomes full (https://www.linuxquestions.org/questions/slackware-14/my-root-partition-becomes-full-908298/)

matters 10-15-2011 04:43 AM

my root partition becomes full
 
hey guys! ive been strugling with it for sometime.

my root partition became almost full for quite some time now im wondering how i can see what file caused rapid filling of root partition?

also when using du command i get this:
Code:

du: cannot access `proc/1613/task/1613/fd/3': No such file or directory
du: cannot access `proc/1613/task/1613/fdinfo/3': No such file or directory
du: cannot access `proc/1613/fd/3': No such file or directory
du: cannot access `proc/1613/fdinfo/3': No such file or directory

im wondering what causes it.

thanks!

GazL 10-15-2011 05:11 AM

/proc isn't a normal filesystem so those sorts of errors are normal (it most likely means that those processes are no longer running). The -x option will prevent du trying to read through proc.

The way I tackle this sort of thing is to do
Code:

du -xSb / | sort -n
Which will present you with a list of directories and the size in bytes of their contents (not including subdirectories which will have their own entries), from smallest to largest. Then you can just scroll back through the list and find ones which seem to look bigger than they should be..

It won't find the culprit every time as open files may not show up in a du scan, but it's a good starting point.

matters 10-15-2011 05:23 AM

@gazl thanks for clarification problem solved!


All times are GMT -5. The time now is 12:54 PM.