I have a 5-yr old Ubuntu laptop. It's running 12.04 LTS, and has never given me much if any trouble. Last night while updating, a disk analyzer popped up, and said I had very little space left. It was correct.
Since then, I've been manually cleaning up old kernels and their related files under /boot. I'm down from 95% to 89%. I've looked under /var/spool and cleaned up many, but not very large spool files that never printed from a long time ago. The disk analyzer just points to root at 100%, showing /usr at 45% and a trickle for everything else including /home.
I checked with Synaptic. I don't have big packages installed like apache or mysql. What else could be filling up the disk and how should I approach the clean-up other than a brute force install?
I am using this script
#!/bin/bash
ORPHANS=`deborphan`
if [ ! -z "$ORPHANS" ]; then
dpkg --remove $ORPHANS
fi
PURGES=`dpkg --list | grep ^rc | awk '{ print $2; }'`
if [ ! -z "$PURGES" ]; then
dpkg --purge $PURGES
fi
that I found here.
However, this has only taken root down to 88%, and adding deborphan added 1%, when I had to install it.
df
command's displaying free space?