From owner-freebsd-questions@FreeBSD.ORG Thu Feb 8 21:55:34 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0A44616A4D0 for ; Thu, 8 Feb 2007 21:55:34 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id AF61313C467 for ; Thu, 8 Feb 2007 21:55:33 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 08 Feb 2007 16:55:35 -0500 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id IFQ30217; Thu, 8 Feb 2007 16:55:22 -0500 (EST) Received: from 209-6-203-219.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.203.219]) by smtp01.lnh.mail.rcn.net with ESMTP; 08 Feb 2007 16:55:23 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17867.39799.224657.930191@jerusalem.litteratus.org> Date: Thu, 8 Feb 2007 16:51:51 -0500 To: "FreeBSD Questions" In-Reply-To: <6207f7d90702081057i597ff6e4r427b0ec66f91acc5@mail.gmail.com> References: <6207f7d90702070902n5a2aceb3xe6b380b491ae5b64@mail.gmail.com> <6207f7d90702081057i597ff6e4r427b0ec66f91acc5@mail.gmail.com> X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" XEmacs Lucid X-Junkmail-Status: score=10/50, host=mr08.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090202.45CB9C53.00D6,ss=1,fgs=0, ip=207.172.4.11, so=2006-05-09 23:27:51, dmn=5.2.125/2006-10-10 Subject: Re: compiling error - /usr : filesystem 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: Thu, 08 Feb 2007 21:55:34 -0000 > {objcopy) /usr : filesystem full > > The only thing I can think of is to simply # rm /usr/ports ... for > lack of a better example. > > # du -ak /usr |sort -nr | > /tmp/file2.txt > This file had 24,000 lines so I deleted much of the file. > > Your thoughts/suggestions will be much appreciated. 1) make the above: du -k | sort -nr | head -n 30 Whatever's causing your problem is likely to reveal itself in the list of the 30 largest directories. > Filesystem 1M-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 495 55 400 12% / > devfs 0 0 0 100% /dev > /dev/ad0s1e 495 10 445 2% /tmp > /dev/ad0s1f 2300 2286 -170 108% /usr 2) Depending on your installation, 2gb is _small_ for /usr. IF that's what you have, then you need to be ruthlessly pro-active about purging unneeded files. Start by running the command above as a cron job once a day; mail yourself the output. 3) As others mentioned, "rm -r /usr/obj/*" before "make buildworld". On my system, it takes up 863 mb. 4)a Install ports-mgt/portupgrade. b run "/usr/local/sbin/portsclean -CDD" Robert Huff