Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] clean-up root partition
Date: Thu, 01 Oct 2015 13:06:44
Message-Id: 560D2FB6.1000803@gmail.com
In Reply to: Re: [gentoo-user] clean-up root partition by thelma@sys-concept.com
1 On 01/10/2015 15:02, thelma@×××××××××××.com wrote:
2 > On 10/01/2015 06:57 AM, Philip Webb wrote:
3 >> 151001 thelma@×××××××××××.com wrote:
4 >>> How do you folks clean-up root partition, I have too much junk in there.
5 >>> df -h
6 >>> Filesystem Size Used Avail Use% Mounted on
7 >>> /dev/sda3 74G 61G 9.3G 87% /
8 >>> I've already removed all the files from /usr/portage/distfiles .
9 >>
10 >> 'du' is your friend : it has lots of options, so read the 'man'.
11 >> that will tell you what's using so much space, then you can delete stuff.
12 >> My system shows :
13 >>
14 >> root:505 ~> df -h
15 >> Filesystem Size Used Avail Use% Mounted on
16 >> 802 30G 6.4G 24G 22% /
17 >> tmpfs 395M 516K 395M 1% /run
18 >> dev 10M 0 10M 0% /dev
19 >> none 2.0G 0 2.0G 0% /dev/shm
20 >> cgroup_root 10M 0 10M 0% /sys/fs/cgroup
21 >> /dev/sda5 30G 12G 19G 40% /home
22 >> /dev/sda6 15G 6.7G 8.4G 45% /usr/portage
23 >> /dev/sda7 40G 8.1G 32G 21% /z
24 >> /dev/sdb1 9.8G 3.5G 6.3G 36% /usr/local
25 >> /dev/sdb5 9.8G 1.6G 8.3G 16% /usr/src
26 >> tmpfs 2.0G 8.0K 2.0G 1% /tmp
27 >>
28 >> /z is a large hangar space for handling very big files.
29 >
30 > Thanks.
31 > Yes, I used:
32 > du -a /var | sort -n -r | head -n 10
33 >
34 > and found my /var/log/messages was over 5Gb
35
36
37 Junk can accumulate in hundreds of places, it all depends how you set
38 the host up. These are often culprits:
39
40 /home/*
41 /tmp/
42 /var/tmp/portage
43 /usr/src
44
45
46
47
48 --
49 Alan McKinnon
50 alan.mckinnon@×××××.com