1 |
On Tue, 2012-02-28 at 13:52 +0200, Alan McKinnon wrote: |
2 |
> On Tue, 28 Feb 2012 11:37:44 +0000 |
3 |
> trevor donahue <donahue.trevor@×××××.com> wrote: |
4 |
> |
5 |
> > Hi everyone, |
6 |
> > I'm experiencing a major problem right now. I've been using gentoo for |
7 |
> > several months now and I simply lllooove it! |
8 |
> > So here's the thing. When I use gentoo for a long time, even without |
9 |
> > updating the current pack of installed software (emerge -uD world), I |
10 |
> > am left without disk space... In situations like this I start deleting |
11 |
> > /var/tmp/*, /tmp/*, /usr/portage/distfiles/*, maybe do even a |
12 |
> > revdep-rebuild to fix something, but even then I'm left with no more |
13 |
> > then 100 mb, which obviously is not enough ... |
14 |
> > So this time I googled a bit and I deleted all the /usr/share/doc/ |
15 |
> > and this left me with 2.5 gb of space (wow). |
16 |
> > |
17 |
> > So the questions are ... in cases like this, what should be done? |
18 |
> > what is storing this much space? logs? |
19 |
> |
20 |
> The thing that is taking up your space is whatever is making big files |
21 |
> or lots of files. |
22 |
> |
23 |
> Now that could be anything, you will have to look on your machine |
24 |
> yourself and tell us what it is. |
25 |
> |
26 |
> Start here: |
27 |
> |
28 |
> du -sh /* |
29 |
> |
30 |
> Start with the biggest directory and recursively go deeper down into |
31 |
> the structure till you find the major space hogs. |
32 |
> |
33 |
> Logs is one option, and a likely one. But by no means the only |
34 |
> possibility. So just run du and find what it is on *your* box. |
35 |
> |
36 |
> |
37 |
> |
38 |
|
39 |
or "du|sort -rn|less" |
40 |
|
41 |
hogs are at the top ... |
42 |
|
43 |
BillK |