Date: Fri, 12 May 2006 14:17:35 -0500 From: Eric F Crist <ecrist@secure-computing.net> To: bsd <bsd@todoo.biz> Cc: Liste FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Reducing the size of / Message-ID: <A3A2C939-4A59-405F-9D55-CBABFE32E26C@secure-computing.net> In-Reply-To: <4491F65C-CAB7-4B07-95B9-527677A29E6E@todoo.biz> References: <4491F65C-CAB7-4B07-95B9-527677A29E6E@todoo.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A3A2C939-4A59-405F-9D55-CBABFE32E26C>