On 01/10/2015 15:02, [email protected] wrote:
> On 10/01/2015 06:57 AM, Philip Webb wrote:
>> 151001 [email protected] wrote:
>>> How do you folks clean-up root partition, I have too much junk in there.
>>>   df -h
>>>   Filesystem      Size  Used Avail Use% Mounted on
>>>   /dev/sda3        74G   61G  9.3G  87% /
>>> I've already removed all the files from  /usr/portage/distfiles .
>>
>> 'du' is your friend : it has lots of options, so read the 'man'.
>> that will tell you what's using so much space, then you can delete stuff.
>> My system shows :
>>
>>   root:505 ~> df -h
>>   Filesystem      Size  Used Avail Use% Mounted on
>>   802              30G  6.4G   24G  22% /
>>   tmpfs           395M  516K  395M   1% /run
>>   dev              10M     0   10M   0% /dev
>>   none            2.0G     0  2.0G   0% /dev/shm
>>   cgroup_root      10M     0   10M   0% /sys/fs/cgroup
>>   /dev/sda5        30G   12G   19G  40% /home
>>   /dev/sda6        15G  6.7G  8.4G  45% /usr/portage
>>   /dev/sda7        40G  8.1G   32G  21% /z
>>   /dev/sdb1       9.8G  3.5G  6.3G  36% /usr/local
>>   /dev/sdb5       9.8G  1.6G  8.3G  16% /usr/src
>>   tmpfs           2.0G  8.0K  2.0G   1% /tmp
>>
>>  /z  is a large hangar space for handling very big files.
> 
> Thanks.
> Yes, I used:
> du -a /var | sort -n -r | head -n 10
> 
> and found my /var/log/messages was over 5Gb


Junk can accumulate in hundreds of places, it all depends how you set
the host up. These are often culprits:

/home/*
/tmp/
/var/tmp/portage
/usr/src




-- 
Alan McKinnon
[email protected]


Reply via email to