Mark Knecht <markknecht <at> gmail.com> writes:

> OK, good info - but what can I remove? Or more important how can I
> find what's talking up too much space. /home, /usr/portage and /var
> are on partitions of their own. There is about 200MB of Java stuff in
> /opt and I deleted everything in /tmp before I wrote the first note.

Well the first thing you need to do, is run a 'df' and see which
partitions are full. Then used these tools to find files by size and
date. Let's assume we're talking about /usr/portage/distfiles

for example:

REMOVING LARGE FILES IN /usr/portage/distfiles
find ./ -size +100000  -exec ls -lag {} \; | less       <lists large files>
find ./ -size +100000 -print -exec rm {} \;     <prints & removes large files>


You can then changethe size and work your way down. 

Now let's look at old files in /usr/portage/disfiles

REMOVING OLD FILES IN /usr/protage/distfiles
find ./ -mtime +180 -exec ls -lag {} \; | less
find ./ -mtime +180 -print -exec rm {} \;


It really helps if you do this a the 90% point, and avoid
sluggish behavior.

Look at /home too. If you have one big partition, as recommended
in the handbook then removing any files will help.

/usr/src/* is another place to remove kernel sources, similarly,
/boot/

Be cautions!

hth,
James

-- 
[email protected] mailing list

Reply via email to