Re: can i delete /usr/obj/ before installworld?

From: epilogue (epilogue_at_allstream.net)
Date: 08/01/04

  • Next message: JJB: "RE: Firewall Rule Set not allowing access to DNS servers?"
    Date: Sat, 31 Jul 2004 20:04:35 -0400
    To: Scott <freebsd-questions@thismonkey.com>
    
    

    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"
    >
    _______________________________________________
    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"


  • Next message: JJB: "RE: Firewall Rule Set not allowing access to DNS servers?"

    Relevant Pages

    • getting back buildworld to work!
      ... Last night, as usual, current sources were cvsuped, I did buildkernel ... installworld, so I had only part of new world installed (actually it ... it now, because when I try to make buildworld, I see errors like this: ... *** Error code 1 ...
      (freebsd-current)
    • Re: last cvs Makefile.inc1 errors
      ... > The documented upgrade procedure does a 'buildworld' before ... > 'buildkernel' for precisely this kind of problem. ... make installworld ...
      (freebsd-current)
    • Re: last cvs Makefile.inc1 errors
      ... >> make buildworld ... >> make buildkernel ... >> make installworld ... Please stick to the exact sequence above. ...
      (freebsd-current)
    • Re: can i delete /usr/obj/ before installworld?
      ... >I'm really short on diskspace, and I have no room to run a make buildkernel after I run make buildworld. ... >make installworld ...
      (freebsd-questions)
    • Re: can i delete /usr/obj/ before installworld?
      ... Scott wrote: ... >I'm really short on diskspace, and I have no room to run a make buildkernel after I run make buildworld. ...
      (freebsd-questions)