From owner-freebsd-questions@FreeBSD.ORG Fri Mar 31 13:30:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07C1216A422 for ; Fri, 31 Mar 2006 13:30:04 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9240543D45 for ; Fri, 31 Mar 2006 13:30:04 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 23776 invoked from network); 31 Mar 2006 13:30:04 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 31 Mar 2006 13:30:03 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 27AE828425; Fri, 31 Mar 2006 08:30:02 -0500 (EST) Sender: lowell@be-well.ilk.org To: freebsd-questions@freebsd.org References: <009b01c65404$f61f8120$6401a8c0@GRANT> <44odzoxags.fsf@be-well.ilk.org> From: Lowell Gilbert Date: 31 Mar 2006 08:30:01 -0500 In-Reply-To: Message-ID: <44odzmd9nq.fsf@be-well.ilk.org> Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Deleting Kernel conpile directory 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: Fri, 31 Mar 2006 13:30:05 -0000 "Nikolas Britton" writes: > On 30 Mar 2006 09:40:03 -0500, Lowell Gilbert > wrote: > > "Grant Peel" writes: > > > > > I am running a little low on disk space in /usr > > > > > > Can I delete the /usr/src/sys/i386/compile/mykernel directory? > > > > Sure. And if you use the "buildkernel" method when you build kernels, > > you won't even need that directory again. If you use the "old > > method," (calling config directly), though, you will need the space > > again. > > > > > If so, which method is best: > > > > > > a: > > > cd /usr/src/sys/i386/compile > > > rm -rf mykernel > > > > > > or > > > > > > b: > > > cd /usr/src/sys/i386/compile/mykernel > > > make clean > > > > Either one is fine. If you never want to use the directory again, go > > ahead and use the first one. > > What happens when you run 'make clean' from /usr/src/? I tried it once > and it deleted a lot of tmp and .gz files, I thought all of that stuff > was stored in /usr/obj/. always... to the OP you can also delete every > thing in /usr/obj/ The only problem with that is that you *know* you will need that space again next time you do a source update.