Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2016 06:43:59 +0000
From:      "Thomas Mueller" <mueller6724@bellsouth.net>
To:        freebsd-questions@freebsd.org 
Subject:   Re: Borked system, possible to do a worldbuild via  USB?
Message-ID:  <C9.FA.06320.0B49BD75@dnvrco-oedge03>
References:  <c6e54e710e37e578e82575e4bd4d87aa@drenet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hello list. Yesterday I got my long lost home server back on which I was
> running FreeBSD 10.0-RELEASE.  I thought the smart thing to do would be to
> upgrade to 10.3-RELEASE because, what could possible go wrong, right?  I'll
> skip the details, but I'm basically left with an unbootable system, as init
> cannot even finish before failing with this error:
        
> "Init can't exec /bin/sh for /etc/rc: Exec format error"

        
> I believe that this is due to my having rebuilt world with erroneous make.conf
> options, and I'd love to be able to rebuild the world via USB.
        
> I've already got my USB handy and will be working on this when I get home, but
> I wondered if there's a why I can rebuild the world on my server's disk after
> having booted from the USB?  Perhaps, mount the server's disk and chroot into
> it?  Should that work?  Thanks in advance!
        
> Andre Goree

If you have the comp set, you can build or rebuild FreeBSD from USB.  Better to have the source tree and compiling work directory tree (MAKEOBJDIRPREFIX) on the hard drive than on a USB stick if possible.

I have built both NetBSD and FreeBSD from USB-stick installations.  I didn't chroot.

Tom




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C9.FA.06320.0B49BD75>