On 7/17/2011 2:19 PM, Michael Sullivan wrote:
I'm running into space issues (my / partition is at 99% of capacity) and
I'd like some advice on what I can remove and how.
Assuming your / partition isn't tiny I've never seen removing packages
or changing use flags make enough of a difference though there are a
couple of exceptions. Chances are you've got old data rather than
binaries somewhere that's causing the space problem.
/usr/src/linux-*
Each new revisions of the kernel that you install drops a
/usr/src/linux-$version directory. These are pretty good size and you
should remove the packages of any kernels you not using. You may also
need to manually remove the dirs as well after the packages have been
removed.
/var/lib/mysql
It's usually not the databases that use space on a home system, but the
binary logs. Add these two lines under the mysqld portion of your
/etc/mysql/my.cnf and restart Mysql. You may need to purge bin logs as
well though Mysql should clean things up when you restart it.
[mysqld]
expire_logs_days = 10
max_binlog_size = 100M
/root/ /tmp/ /
Lot's of people have the bad habit of leaving dumps, tars or other
files in these dirs. Check them out.
Lastly a df -h and a sudo du -m --max-depth=1 / would go a long way
towards pointing to where the problems are.
kashani