[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /root is full



On Tue, Jul 29, 2014 at 05:08:01PM +0200, Martin Steigerwald wrote:
> Hi Haines,
> 
> Am Dienstag, 29. Juli 2014, 09:22:02 schrieb Haines Brown:
> > The / partition is 500 Mb. In the past I have
> > only used about 50 Mb.
> 
> Why so little?

I forget why I made it so big, but perhaps because I was thinking of
adding partitions to / of uncertain size. 

Thanks for your  partition size recomendations. This has always been in
interesting debating point for linux users, it seems.

> I suggest something like
> 
> merkaba:~> du -d 1 -hx / | sort -rh | head -10 
> 20G     /
> 16G     /usr
> 2,7G    /var
> 1,2G    /opt
> 747M    /lib
> 57M     /root
> 21M     /bin
> 19M     /sbin
> 19M     /etc
> 12K     /lib64
> 
> and go from there. Make it -d 2 and remove head -10 for another level of dirs.
> 
> Or try something like ncdu once you are able to install it again.

Ncdu was new to me and I tried it. I did:

  $ ncdu -rx /
 
and it says total disk usage is 130.7MiB. I take this to mean total
partition usage is 130.7 Mb. Although this seems extraordinarily big, it
is well less than the 500 Mb partition. It seems that 95 Mb for lib is
too big, and when I roughtly added up the size of the files in /lib, it
seems far more than that. It is also a lot different than what df says,
which is that the partition is 100% full with 474.4 Mb of files.

Haines


Reply to: