From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A23571383E0 for ; Thu, 1 Oct 2015 13:06:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5B3A21C041; Thu, 1 Oct 2015 13:06:33 +0000 (UTC) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7B98821C017 for ; Thu, 1 Oct 2015 13:06:32 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so32253252wic.1 for ; Thu, 01 Oct 2015 06:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=LhYVjHuzZhkSfQJYOGi3C4sbkQQ7nGwG1LQn5EOazJ8=; b=g4CmKdsAp4lqVUWISsOOG51C6M/MxX6engokIalQzVva21UF2pcaGmGaD05Vlut0VF cfiJP7FQHi33iXDBe1nAsYMWvE9NGPPxlZ4ouFjRzk5sZCNPEsAgxeFE8MS5/jvcIG5H YIyEQ4+BNYRGN6kT08HIUCkDX5YSRx6X76QIFZP6xaCcab4/KjUbIvwAGUWnRcE42xuy glT4h9XoGeN40WZk855YSQ+UXcOeXMq7FZKzVkln6sNjlAxoaakfEiv6SAZjaVKWbJlc sd0YdGJosX3Vjq9p4hY7Ggj9oJTjd7g8XVQFEEZf0lX7KBHUHKskIuneKUSYogAksmAu PC9g== X-Received: by 10.194.118.5 with SMTP id ki5mr10131870wjb.94.1443704790959; Thu, 01 Oct 2015 06:06:30 -0700 (PDT) Received: from [172.20.0.41] (105-237-194-254.access.mtnbusiness.co.za. [105.237.194.254]) by smtp.googlemail.com with ESMTPSA id xt1sm6044880wjb.32.2015.10.01.06.06.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Oct 2015 06:06:30 -0700 (PDT) Subject: Re: [gentoo-user] clean-up root partition To: gentoo-user@lists.gentoo.org References: <560D2A0E.5080708@sys-concept.com> <20151001125757.GA1089@ca.inter.net> <560D2EF7.7060105@sys-concept.com> From: Alan McKinnon Message-ID: <560D2FB6.1000803@gmail.com> Date: Thu, 1 Oct 2015 15:05:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <560D2EF7.7060105@sys-concept.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 9c46d89c-35ec-4ca6-986e-c5d6035bfeeb X-Archives-Hash: e4c94d70332da32a9be8ed95db6c6bb4 On 01/10/2015 15:02, thelma@sys-concept.com wrote: > On 10/01/2015 06:57 AM, Philip Webb wrote: >> 151001 thelma@sys-concept.com 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 alan.mckinnon@gmail.com