From owner-freebsd-questions@FreeBSD.ORG Fri Mar 13 13:14:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCF1D106570C for ; Fri, 13 Mar 2009 13:14:14 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id 6608B8FC13 for ; Fri, 13 Mar 2009 13:14:13 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id n2DDECmD051574; Sat, 14 Mar 2009 00:14:12 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 14 Mar 2009 00:14:11 +1100 (EST) From: Ian Smith To: Warren Liddell In-Reply-To: <20090313120024.5E27B10656E6@hub.freebsd.org> Message-ID: <20090313235805.I4210@sola.nimnet.asn.au> References: <20090313120024.5E27B10656E6@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: / partition full 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, 13 Mar 2009 13:14:15 -0000 On Fri, 13 Mar 2009 21:33:53 +1000 Warren Liddell wrote: > I've looked as much as i can, but with only 5meg free on / .. its making > things in terms of building world & kernel a lil difficult .. what's the > command so i can see exactly what dir on / is using up all the space so > i can free it up ? # du -xd1 / | sort -rn | head -7 167521 / 81728 /root 56918 /boot 7630 /rescue 4354 /sbin 3550 /lib 3058 /etc sola# du -xd1 /root | sort -rn | head -7 81728 /root 30526 /root/build 23400 /root/mail 7020 /root/p45 4402 /root/bin 842 /root/from_4_5 552 /root/.kde sola# du -xd1 /boot | sort -rn | head -7 56918 /boot 20048 /boot/kernel 17974 /boot/kernel.old 17968 /boot/kernel.55S_2 18 /boot/defaults 2 /boot/modules You want -x to not descend into mounts such as /usr or /var. Replace -d1 with --max-depth=1 if you like extra typing, or are using linux :) cheers, Ian