From owner-freebsd-questions@FreeBSD.ORG Thu Feb 8 19:07:04 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 13CB616A401 for ; Thu, 8 Feb 2007 19:07:04 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from mail-in07.adhost.com (mail-in05.adhost.com [216.211.128.133]) by mx1.freebsd.org (Postfix) with ESMTP id E3D2513C48D for ; Thu, 8 Feb 2007 19:07:03 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from ad-exh01.adhost.lan (unknown [216.211.143.69]) by mail-in07.adhost.com (Postfix) with ESMTP id 745B01B50AF; Thu, 8 Feb 2007 11:07:03 -0800 (PST) (envelope-from mksmith@adhost.com) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-cr-puzzleid: {B7C46A46-D744-4EE5-AD0B-F96BCC54846F} X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message x-cr-hashedpuzzle: AQxl BdrF CqlU DyfM H/Ni IGRX KTSZ M93z NYyL NZcG NqPU PUUA Qgth RnoQ StBS TX/U; 2; ZABvAG4ALgBtAHUAbgB5AGEAawBAAGcAbQBhAGkAbAAuAGMAbwBtADsAZgByAGUAZQBiAHMAZAAtAHEAdQBlAHMAdABpAG8AbgBzAEAAZgByAGUAZQBiAHMAZAAuAG8AcgBnAA==; Sosha1_v1; 7; {B7C46A46-D744-4EE5-AD0B-F96BCC54846F}; bQBrAHMAbQBpAHQAaABAAGEAZABoAG8AcwB0AC4AYwBvAG0A; Thu, 08 Feb 2007 19:06:36 GMT; UgBFADoAIABjAG8AbQBwAGkAbABpAG4AZwAgAGUAcgByAG8AcgAgAC0AIAAvAHUAcwByACAAOgAgAGYAaQBsAGUAcwB5AHMAdABlAG0AIABmAHUAbABsAA== Date: Thu, 8 Feb 2007 11:06:36 -0800 Message-ID: <17838240D9A5544AAA5FF95F8D52031601A8BF2E@ad-exh01.adhost.lan> In-Reply-To: <6207f7d90702081057i597ff6e4r427b0ec66f91acc5@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: compiling error - /usr : filesystem full thread-index: AcdLsx+u803f3rRsSrebqD6z2mbKLwAANo3w References: <6207f7d90702070902n5a2aceb3xe6b380b491ae5b64@mail.gmail.com> <6207f7d90702081057i597ff6e4r427b0ec66f91acc5@mail.gmail.com> From: "Michael K. Smith - Adhost" To: "Don Munyak" , "FreeBSD Questions" Cc: 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 19:07:04 -0000 Hell Don: > -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of Don Munyak > Sent: Thursday, February 08, 2007 10:58 AM > To: FreeBSD Questions > Subject: Re: compiling error - /usr : filesystem full >=20 > Here's some additional Information I have been able to find. The > narrative is just to further explain what I was doing. > --------------------- > I was in the process of rebuilding a new kernel for one of my laptops. > I did the whole cvsup_without-gui. I created a new kernel called > LAPTOP and commented all unnecessary drivers and options. >=20 > When I ran make buildkernel KERNCONF=3DLAPTOP, the process eventually > died with an error. I neglected to write down the exact error, but it > was something like >=20 > {objcopy) /usr : filesystem full >=20 > As you can see /usr is choking. I have not turned off the laptop. > Based on the information below, what can I "delete" to free up some > space. I use the word delete in broad terms. Much like the windows > world where you should 'uninstall' as opposed to simply deleting a > folder...I am not sure what to do...ie how to free up space. >=20 > The only thing I can think of is to simply # rm /usr/ports ... for > lack of a better example. >=20 > # du -ak /usr |sort -nr | > /tmp/file2.txt > This file had 24,000 lines so I deleted much of the file. >=20 > Your thoughts/suggestions will be much appreciated. >=20 > ---------------------------------------------------- >=20 > ### output from running # df -m > /tmp/file1.txt > ### where -m is MB > 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 > /dev/ad0s1d 1098 58 952 6% /var > devfs 0 0 0 100% /var/named/dev >=20 >=20 > ### output from running # du -ak /usr |sort -nr | > /tmp/file2.txt > ### where -a is 'display entry for each file in file hierarchy > ### where -k is 'display block count in kilobyte' > 2341378 /usr > 636728 /usr/obj > 636726 /usr/obj/usr > 636724 /usr/obj/usr/src This is from http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html 4.6 Remove /usr/obj As parts of the system are rebuilt they are placed in directories which (by default) go under /usr/obj. The directories shadow those under /usr/src. You can speed up the make buildworld process, and possibly save yourself some dependency headaches by removing this directory as well. Some files below /usr/obj may have the immutable flag set (see chflags(1) for more information) which must be removed first. # cd /usr/obj # chflags -R noschg * # rm -rf * --- That might get you enough room. Regards, Mike