From owner-freebsd-current@FreeBSD.ORG Fri Mar 19 12:51:22 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FFD8106566B for ; Fri, 19 Mar 2010 12:51:22 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 3AFD08FC13 for ; Fri, 19 Mar 2010 12:51:21 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 5so397162qwi.7 for ; Fri, 19 Mar 2010 05:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type:content-transfer-encoding; bh=ZWd/I1wM1Bez7fIt0hogYFqBZitWPDeabhnZtoK4l/8=; b=NcklGfgg5c3COfOJasT48TxwTEoRJQaS3GeCpPxQhtCllkZD5lroFMP8Bu4uOEHktn rFUEye5Vw/WRNt4Gkn4MwmgN28c805wJiymnJjcAXCFP2/j7Y7RmSERaLVT3UC1RBcTH TrhktbW/uttK4PySy+pnhJ4ops2Lv+n1L3Rzk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type:content-transfer-encoding; b=tfuJFXVqADmGrDzDos93gUEyVscYSrwihssi9ljP/IIdeNEq7pKlOK+RVwVlEMNEWo kVKbKozk8+5dO+DADZfXeKM87nvTPNy8Fct8/JBvaAXOvltwr+Dhd/1lVBvabD5INrTH ePHMhG29UNMUUcxYgNHYbdLlm4K7in9Vx42MI= Received: by 10.224.140.71 with SMTP id h7mr1203068qau.159.1269003081286; Fri, 19 Mar 2010 05:51:21 -0700 (PDT) Received: from centel.dataix.local (ppp-21.181.dialinfree.com [209.172.21.181]) by mx.google.com with ESMTPS id 20sm217727qyk.4.2010.03.19.05.51.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Mar 2010 05:51:19 -0700 (PDT) Sender: "J. Hellenthal" Date: Fri, 19 Mar 2010 08:51:03 -0400 From: jhell To: Garrett Cooper In-Reply-To: <7d6fde3d1003182328w63c84053r2bbc3e05f4ec6530@mail.gmail.com> Message-ID: References: <20100318200329.GC67716@mech-cluster241.men.bris.ac.uk> <7d6fde3d1003182328w63c84053r2bbc3e05f4ec6530@mail.gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Cc: Freddie Cash , freebsd-current@freebsd.org, krad Subject: Re: recovery from terminated make installworld? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2010 12:51:22 -0000 On Fri, 19 Mar 2010 02:28, Garrett Cooper wrote: In Message-Id: <7d6fde3d1003182328w63c84053r2bbc3e05f4ec6530@mail.gmail.com> > On Thu, Mar 18, 2010 at 4:08 PM, krad wrote: >> On 18 March 2010 20:41, Freddie Cash wrote: >> >>> On Thu, Mar 18, 2010 at 1:07 PM, Justin Hibbits >>> wrote: >>> >>>> On Thu, Mar 18, 2010 at 4:03 PM, Anton Shterenlikht >>>> wrote: >>>> >>>>> I was in the single user mode doing 'make installworld' >>>>> when the system froze and I had to cold reboot. >>>>> Now in single user mode I get to: >>>>> >>>>> Enter full pathname of shell or RETURN for /bin/sh: >>>>> /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format >>>>> /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format >>>>> Enter full pathname of shell or RETURN for /bin/sh: >>>>> >>>>> Is there a way to recover? >>>>> Or do I have to reinstall from scratch? >>>> >>>> Try /rescue/sh (or tcsh).  It's all statically linked, so you should be >>>> able >>>> to recover from there. >>>> >>>> And if that doesn't work, try a LiveFS CD. >>> >>> And, if all else fails, you can do a minimal install overtop.  You'll lose >>> all your /etc settings, but will get a bootable system again. >>> >>> -- >>> Freddie Cash >>> fjwcash@gmail.com >>> _______________________________________________ >>> freebsd-current@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-current >>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >>> >> >> >> easier and less risky to boot in on some form of live cd, mount all the fs >> up under /mnt, set the DESTDIR=/mnt and continue the installworld > > Yes, this is the easiest way to do things: > > 1. Boot live CD, USB, w/e. > 2. mount all of your filesystems. > 3. make -C $DESTDIR/usr/src installworld DESTDIR=$DESTDIR > > No loss of data. But given that you've already done the reinstall, I > suppose there's no way to go back now :/... > make(1) and friends come on the live CD or USB stick images ? AFAIR they didn't and it required a chroot(1) into the newly mounted environment and then running make(1) after invoking /rescue/sh to continue the install from a previously built world. If so then the above would become: chroot /mnt /rescue/sh cd /usr/src mergemaster -p make installworld mergemaster sync ;sync ;reboot --- continue whatever other steps from here... The above assumes you have already installed your new kernel. If not then it should be obvious of the steps you have to take to get that done. Regards, -- jhell