From owner-freebsd-questions@FreeBSD.ORG Fri May 12 19:17:58 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC29C16ACD4 for ; Fri, 12 May 2006 19:17:58 +0000 (UTC) (envelope-from ecrist@secure-computing.net) Received: from grog.secure-computing.net (grog.secure-computing.net [216.243.161.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1086443D45 for ; Fri, 12 May 2006 19:17:40 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from [192.168.1.4] (snipe.secure-computing.net [216.243.161.77]) (authenticated bits=0) by grog.secure-computing.net (8.13.3/8.13.3) with ESMTP id k4CJM28w005527 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Fri, 12 May 2006 14:22:02 -0500 (CDT) (envelope-from ecrist@secure-computing.net) DomainKey-Signature: a=rsa-sha1; s=grog; d=secure-computing.net; c=simple; q=dns; b=kTH5mUGI9dSS+Sdyk+aom2NVgh9jBrkmR7iAPG42vm+vu4bEqkkCzeY6kFFlgdUkA ALtM5UF2ZEhCw6IsKFQ7w== In-Reply-To: <4491F65C-CAB7-4B07-95B9-527677A29E6E@todoo.biz> References: <4491F65C-CAB7-4B07-95B9-527677A29E6E@todoo.biz> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Eric F Crist Date: Fri, 12 May 2006 14:17:35 -0500 To: bsd X-Mailer: Apple Mail (2.750) X-Spam-Status: No, score=-3.9 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on grog.secure-computing.net Cc: Liste FreeBSD Subject: Re: Reducing the size of / X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 19:18:01 -0000 On May 12, 2006, at 11:11 AM, bsd wrote: > Hello, > > I have three partitions on my server and would like to reduce the > size of / because I am getting quite full ! > > Filesystem Size Used Avail Capacity Mounted on > /dev/ar0s1a 3.8G 2.8G 668M 81% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/ar0s1d 60G 1.9G 53G 3% /home > > > What are the places I could start looking in to delete not so > usefull files, knowing that I am syncing using portsnat (and > previously cvsup). A good command I use when things start getting full is: #du -hd 1 [filesystem] Where [filesystem] is the partition path you want stats on. My output looks like this: # du -hd 1 / 2.0K /.snap 1.5K /dev 49G /usr 841M /var 3.1G /www 2.3M /stand 3.1M /etc 2.0K /cdrom 924K /bin 39M /boot 3.2M /lib 282K /libexec 2.0K /mnt 2.0K /proc 3.5M /rescue 15M /root 4.0M /sbin 8.3M /tmp 2.0K /floppy 2.2M /jail 53G / It can tell you where your using the most space. I'm guessing your / usr directory is the culprit. Try going to /usr/ports and typing make distclean. ----- Eric F Crist Secure Computing Networks http://www.secure-computing.net