Disk Usage
Jerry
freebsd.user at seibercom.net
Fri Apr 23 16:48:02 UTC 2010
On Fri, 23 Apr 2010 11:18:57 -0500 (CDT)
Mark <tinguely at casselton.net> articulated:
>
> The command (as root) will show which directories in the root
> partition use the most space:
>
> # du -kx / | sort -n
>
> Sometime install will backup the boot kernel directory.
> Multiple /boot/kernel* directories can quickly eat up space.
/ $ sudo du -kx / | sort -n
1 /dev
2 /.snap
2 /boot/firmware
2 /boot/zfs
2 /cdrom
2 /etc/ntp
2 /etc/skel
2 /etc/ssl/demoCA/crl
2 /etc/zfs
2 /media
2 /mnt
2 /proc
2 /tmp
2 /usr
2 /var
4 /etc/devd
4 /etc/gnats
4 /etc/ppp
4 /etc/ssl/demoCA/certs
6 /etc/gss
6 /etc/periodic/monthly
6 /etc/ssl/demoCA/private
8 /etc/bluetooth
10 /etc/X11
10 /etc/ssl/demoCA/newcerts
14 /etc/periodic/weekly
14 /etc/ssl/apache-certs
16 /root/kernels
24 /boot/defaults
34 /root
36 /etc/pam.d
36 /etc/security
40 /etc/periodic/security
42 /etc/ssl/demoCA
54 /etc/defaults
56 /etc/periodic/daily
74 /etc/mtree
94 /etc/ssl
118 /etc/periodic
144 /etc/ssh
252 /etc/mail
336 /lib/geom
386 /etc/rc.d
1026 /libexec
1152 /bin
1888 /etc
4416 /rescue
5240 /sbin
7586 /lib
12884 /boot/modules
238354 /boot/kernel.old
240616 /boot/kernel
492826 /boot
514199 /
I am assuming that I can safely delete the contents of
"/boot/kernel.old". It is not that I am in dire need of space but
rather I do not want to risk running out of space in root again. Next
time I will allocate at least 2G to root.
$ df -cih
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/ad0s1a 989M 502M 408M 55% 2.9k 138k 2% /
devfs 1.0K 1.0K 0B 100% 0 0 100% /dev
/dev/ad0s1d 496M 18K 456M 0% 15 66k 0% /tmp
/dev/ad0s1e 220G 6.1G 196G 3% 371k 29M 1% /usr
/dev/ad1s1d 222G 737M 203G 0% 28k 30M 0% /var
total 443G 7.3G 401G 2% 402k 60M 1%
--
Jerry
FreeBSD.user at seibercom.net
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________
I'd rather have a bottle in front of me than a frontal lobotomy.
More information about the freebsd-questions
mailing list