> On Oct 24, 2017, at 10:18, John Jason Jordan <joh...@gmx.com> wrote:
> 
> I recently encountered this and it turns out that my / partition was,
> indeed, full. At the last Clinic I added ~50GB of free space on the
> drive to /, making now a total of 84GB. And now it is happening again.
> Something in / has eaten the entire new space.
> 
> Note that ~/ is on the same drive, but a different partition. According
> to Thunar the ~/ partition is only 64% used, 138GB of free space.
> The device is a 480GB SSD. Palimpsest shows both partitions and no
> unallocated space.
> 
> I used Thunar to check Properties on everything in / and found nothing
> out of the ordinary. I need some command line tools to find the pig
> that is using all my space. Also I need to find out what is causing the
> pig to be so hungry. Suggestions?
> _______________________________________________
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug

This is way more complicated than you need, but I use it all the time to find 
where space has gone. When you run this as root or sudo, it will list each 
directory and how much space it takes.  

FWIW, without reading the thread, I suspect /var/log.

Everyone be gentle. I wrote this years ago before I learned much about 
scripting, and it works, so I haven’t messed with success. 

#!/bin/bash

OUTFILE=/tmp/dirs.$$
SORTED_OUTFILE=/tmp/sorteddirs.$$

OLDIFS=$IFS
IFS=$'\n'

for each in `ls -1A`; do
        echo "Processing $each..."
        du -ksx $each >> $OUTFILE
done

echo "Directory usage for `date +%m%d%y%H%M%S`" > $SORTED_OUTFILE; echo >> 
$SORTED_OUTFILE

sort -nr $OUTFILE >> $SORTED_OUTFILE

rm $OUTFILE

less $SORTED_OUTFILE
rm $SORTED_OUTFILE

IFS=$OLDIFS


—

Russell Johnson
r...@dimstar.net




_______________________________________________
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to