Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2009 00:14:11 +1100 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Warren Liddell <shinjii@maydias.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: / partition full
Message-ID:  <20090313235805.I4210@sola.nimnet.asn.au>
In-Reply-To: <20090313120024.5E27B10656E6@hub.freebsd.org>
References:  <20090313120024.5E27B10656E6@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 13 Mar 2009 21:33:53 +1000 Warren Liddell <shinjii@maydias.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090313235805.I4210>