Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jul 2004 20:04:35 -0400
From:      epilogue <epilogue@allstream.net>
To:        Scott <freebsd-questions@thismonkey.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: can i delete /usr/obj/ before installworld?
Message-ID:  <20040731200435.3dac71d1@localhost>
In-Reply-To: <20040731103615.GA33587@freebsd-01.two-fifths.com>
References:  <20040731103615.GA33587@freebsd-01.two-fifths.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 31 Jul 2004 10:36:16 +0000
Scott <freebsd-questions@thismonkey.com> wrote:

> Hi there,
> 
> I'm really short on diskspace, and I have no room to run a make
> buildkernel after I run make buildworld.
> 
> Is it possible to do the following:
> 
> make buildworld
> rm -fr /usr/obj
> make buildkernel
> make installkernel
> -reboot single user
> make installworld

hello scott,

if i am not mistaken, everything created by make buildworld is what ends up
under /usr/obj.  by deleting these files, you are effectively removing
everything that you want to install via make installworld.

(perhaps?) a more space effective workaround would be to:

1) build a generic kernel and keep that lying about.  in other words, copy
the new generic kernel you build to another file like kernel.generic. 
these are pretty good about booting up, the despite minor changes that can
take place from buildworld to buildworld.

2) perform the make buildworld, reboot, make installworld, mergemaster,
reboot.

3) boot with your kernel.generic, clean out usr/obj, then make a new
kernel.

if this still doesn't work for you, i would recommend cleaning out some of
the directories which can chew up free disk space.  for example, 
/usr/ports/distfiles/ and /usr/ports/*/work (see man portsclean - part of
portinstall tools) and your/tmp (if you don't already have
clear_tmp_enable="YES" set in your rc.conf).

i know that this isn't exactly a perfect solution, but i hope nevertheless
that it helps you to achieve your end goal.


cheers,
epi


> TIA
> Scott
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040731200435.3dac71d1>