Try to execute this script:
- Code: Select all
#!/bin/bash
if [ $UID -ne 0 ]; then
echo "You have to be root in order to get better results" >&2
fi
DIRS=$(ls -m /)
DIRS=${DIRS//","/""}
for D in $DIRS; do
D=/$D
if [ -d "$D" -a "$D" != "/proc" ]; then
USAGE=$(du -h "$D" 2>/dev/null)
if [ $? -eq 0 ]; then
printf "%s" "$USAGE" | grep -E '[[:space:]]'"$D"'$'
else
echo "Failed to get $D directory Disk Usage (probably permissions were denied)" >&2
fi
fi
done
This is a little script I made to list the disk space occupied by each directory in /, you should execute it as root to be able to walk in any directory.
You should copy it to a text file and make it executable to run it.
You should get a result like:
- Code: Select all
5,3M /bin
13M /boot
472K /dev
16M /etc
25G /home
16K /install-data
196M /lib
8,0K /media
40K /mnt
254M /opt
108M /root
18M /sbin
8,0K /scripts
0 /sys
48K /tmp
7,6G /usr
1,2G /var
The output could be useful to determine what is taking so much space...
if you run equo cleanup regularly I can only think about an installed application that installed many dependencies (like a KDE application in a Gnome system) or about logfiles growing too large.
In the second scenario you could install
logrotate, that utility is awesome.
To cleanup your system you could also be interested in the:
- Code: Select all
equo unusedpackages
command, it lists packages that are not dependency of any other package, but be careful, because this does not mean that they are useless.