From owner-freebsd-current@freebsd.org Tue Jan 17 21:39:39 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B7B7CB5AE6 for ; Tue, 17 Jan 2017 21:39:39 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C9F211C8F for ; Tue, 17 Jan 2017 21:39:38 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from hermann ([85.178.51.158]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MATlG-1cI4tj0ite-00BbRx; Tue, 17 Jan 2017 22:39:33 +0100 Date: Tue, 17 Jan 2017 22:39:32 +0100 From: "Hartmann, O." To: "Hartmann, O." Cc: FreeBSD CURRENT Subject: Help! Howto installworld crashed system with USB image? Message-ID: <20170117223932.1db135e8@hermann> In-Reply-To: <20170117213005.0a4a3d2d@hermann> References: <20170117213005.0a4a3d2d@hermann> Organization: walstatt.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:DwvZfTDJmzECXWoualc8N8sXlgn6XSpd2QRcaEzFWVUrxrU9goW oIjgS87nL4EGM+EWACCw6/XhzdLIe3AArylQCmqUHTgT194/3RULGwyhCBDdj3XltCnVgrc Qb6TjnXs7BzJSGdF9s+JaAwSwfjwh+7b1bKMu4CDPDTMDb+dyxThNJ0E2ZB54VlG9y8L+9L 8Uho2Qxi1CM+yOwK2Ztow== X-UI-Out-Filterresults: notjunk:1;V01:K0:18KuLRQ1vPg=:tfnF7yr7ZidHhxvMbzq9S4 Y41O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B8YvdUysDcttE4TQ== X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Tue, 17 Jan 2017 21:39:39 -0000 Within the past several hours, FreeBSD crashed due to serious bugs and some boxes of ours hang with the uncomplete workaround with EARLY_AP_STARTUP. During a recompilation and installworld/installkernel, one of my workstations suddenly crashed and spontaneously rebooted. After that, the loader complained about "not kernel" and left me alone at the "OK " prompt of the bootloader. After some fast investigations I realized, that except /bin/sh all files on the SSD (Samsung 850 PRO, crashed kernel had NANDFS option enabled as well as device nandfs, if this is of interest, but I doubt it). Since the whole SSD is so far intact including the /usr/src and /usr/obj and with only the binary and =C3=B6libraries (probably, not confirmed) corrupt, I tried to rescue via using the most recent 12-CURRENT ISO FreeBSD USB image FreeBSD-12.0-CURRENT-amd64-20170105-r311461-memstick.img But I'm lost here! I mounted for convenience usr/obj and usr/src onto /usr/obj and /usr/src respectively onto the USB mounted filesystem. Everything else of the SSD is mounted onto /mnt.=20 I thought I could simply "bootstrap" an installworld with the toolchain resident on /usr/obj, but I fail in a painful way. cd /usr/src, make DESTDIR/mnt installworld installkernel bugs out with some mysterious error telling me to set COMPILER_TYPE=3D, so I did set this variable to cc. The result: I figured out that the USB image is one of the useless minimalistic ones with no compiler aboard. Fine. No rescue, no cc, no nothing. I desperately need some advice in how I can perform installworld and installkernel. I have a customized /etc/src.conf and /etc/make.conf, so I guess I have to set ETCDIR=3D/mnt/etc also. Since I use a different name of my kernel (not GENERIC), I also need to set KERNCONF and KERNEL, so I guess, with KERNCONF in question, since I have already a kernel ready to install. But how can I delegate the installation procedure to use anything from /usr/obj including the compiler? Something has changed to the worse in FreeBSD! I remember that I had a similar situation a while ago last year on 10 or 11-CURRENT, where a crash destroyed libraries and I was capable of rescueing the system via the USB image and installworld.=20 Either some great mind erased the necessary compiler from the (too) minimalistic image, or something new has been introduced to perform a rescue/standalone-bootstrap installation.=20 Either way, I would be really happy if someone could give me a hint how to rescue the broken system. Thanks in advance, Oliver p.s. I've already written another mail to the list with a more unclear subject, I hope this subject makes it more clear and after the anger has gone away, I think I can express the situation more clearly.