Watch this one!

I ended up with a seriously broken system after running localepurge -
make sure you have your locale sorted out first!  But it can save quite
a lot of space - pity the system was dead in the water ...

reiserfs is more space efficient than other filesystems like ext2/3
(depending on a lot of things ... YMMV)

-O3 - saves peanuts overall

rm -rf /usr/src/linux* - dangerous, lokk in there first and only remove
what you are not using (i.e., leave your current kernel, plus one other
"good" version as a backup - the number of times Ive had to roll
back ... :)

rm -rfv /usr/portage/distfiles - after thinking about if you need to
keep these versions, consider if redownloading them wont be a problem
(or write them out to DVD/CD etc.  There are also a couple of distfile
cleaner programs - see the forums.  If you have another machine, look
into http-replicator - highly recommended.

rm -rfv /var/tmp/portage - this can all go - often cruft like crashed OO
builds end up here - can be huge.

run `du /|sort -rn|less` and see where your biggest files/directories
are and see if they can go.

In real tight situations, NFS can help by
putting /usr/portage/distfiles, /var/tmp/portage, etc on other machines
with more diskspace.  I have found this to be very flakey at times
depending on kernel versions, system loads, etc.  Huge builds like OO
rarely finished without a crash or two in the build process :)

Use the -doc useflag and rebuild - this can save over a GB on a large
systems

there have been a number of threads over the years on saving space -
search the forums.

BillK



BillK

On Thu, 2007-04-26 at 17:38 +0200, Hemmann, Volker Armin wrote:
> On Donnerstag, 26. April 2007, Grant wrote:
> > I've found myself with a full hard disk and no obvious choices for
> > reducing usage.  Are there any not-so-obvious ways to free up hard
> > disk space?
> >
> > - Grant
> 
> localepurge
> 
> rm -rf /var/tmp/
> 
> using reiserfs
> 
> stop using -O3
> 
> rm -rf /usr/src/linux*
-- 
[EMAIL PROTECTED] mailing list

Reply via email to