From owner-freebsd-questions@freebsd.org Mon Apr 30 18:42:05 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3DFFFB32A9 for ; Mon, 30 Apr 2018 18:42:04 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 51D2085B0B for ; Mon, 30 Apr 2018 18:42:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.45.149]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.183]) with ESMTPA (Nemesis) id 0MT86g-1el4TL3U8M-00S7Rq; Mon, 30 Apr 2018 20:41:57 +0200 Date: Mon, 30 Apr 2018 20:41:57 +0200 From: Polytropon To: Robert Fitzpatrick Cc: Robert Fitzpatrick via freebsd-questions Subject: Re: Restoring bootcode Message-Id: <20180430204157.95bc21ff.freebsd@edvax.de> In-Reply-To: <5AE7443F.3020803@webtent.org> References: <5AE5F327.3050702@webtent.org> <20180429230540.c93489c9.freebsd@edvax.de> <5AE7443F.3020803@webtent.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:WJ4Gwsi4VjJakCVdqkDxwyHhHdT5M/pXXXhx8xYqdy/TgbTWJ1H gjNVqTegX1KnbSrHLCGkJbl3Fz8vhAnyJhP8KtervaU0JDN+AvsDUG8nZv5MvL3QQr/85G/ 6AvutJpThiCaxjkExa6fhaxikGLGd4ahrGHTt7YfQMk0yS1T2UG1vTOu6o4MAPd2zdmz7B3 HDOuBei7iJJT0up25ZkHA== X-UI-Out-Filterresults: notjunk:1;V01:K0:VvgCx9JHeIU=:d9VvY70tdpk5TW0z90oFXN SCuMLl5NjzPJQac0Xac6zD2tL9NOXYV+e0SuEb/zHUs7ch/HjeMoszr84DyW37aQ42POraaPV G6yJ1Hl43nIcLNIngUjOQUTjIgNEhG3ZaPx9qscyXbpInCX9O48d9/KNBUKtdU3C5QlCUVE6l EP8k+D5Jd/0O/soBsRs/hgwy59hZTFRcUiXAU5HNoa7nZhopvwZEYTDRXw6vAKg8MtV8y5D1y hX1aAFYJsSom30G0vwHbVMCLtX1Z84l4WR/sY6Q75+8ntsydfvErH3VED9h7lnJFu5l7PDvqZ PSAU+r7jCYRdAiJExb/wn/M+gnX11yWpXsCRbTnjt85ZRpcicWlUkJvPclsU5oqwlk29nWqxc wgyhCaSgWW1e4c6N/lR23gkqmyShLlxypPRsNATfkhROnfUB+fmpUnfH+/XAlbEgSK2dPDuNJ +iYcn97dm1JyZlsJ/PlAR/DfTviF/NuqEkTJnMZY0VbMgJn4AoG3k096INSazBIxGuE6VVkAR TIHZNIFS5fLU5+Kx+/cKupwJeS1TCKbyrauf6wucLRNAdqK44+Dzx+4AHgU6H4LZPVM9m4+xr LvkZ2zaLtHKefgHIXUztQ3I65sEt2jPy0KKgq0E6KviaxErgckYkXx4ii+mQhyFn0an51efnf iVdxBuhkZsm9w8WEIqAqJJL8N0JZ3Gizj5/olSbXy7iYn6iMdz6ouMJdy3lWdDFE7itrqIP2t KdTDvjU/ZsD3m+RI X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 18:42:05 -0000 On Mon, 30 Apr 2018 12:28:47 -0400, Robert Fitzpatrick via freebsd-questions wrote: > Polytropon wrote: > > As this seems to be a MBR setup, the commands should probably be: > > > > # gpart bootcode -b /boot/mbr ada0 > > # gpart set -a active -i 1 ada0 > > # gpart bootcode -b /boot/boot ada0s1 > > Didn't work, I failed to post the messages received before kicking out > to the OK loader prompt. I'm seeing this... > > can't open 'boot/menu.4th': no such file or directory > Error while including /boot/menu.rc, in the line: > include /boot/menu.4th > \ > can't load 'kernel' This shows that a file required for boot isn't there, but this has nothing to do with the MBR stage. It's related to what files need to be present in /boot (usually on /dev/ada0s1a, if no specific separate boot partition has been created). > I can see that menu.4th is not in the /boot directory. I do see the > below in my menu.rc, all of the files are present in /boot except the > menu.4th and menu-commands.4th. The only file in the /boot folder > starting with menu is the menu.rc. > > \ Load required Forth modules > include /boot/version.4th > include /boot/brand.4th > include /boot/menu.4th > include /boot/menu-commands.4th > include /boot/shortcuts.4th This indicates your /boot directory's content is damaged. You proably need to reinstall its content from source, or hope a freebsd-update will bring it back. The easiest way to get the file probably is to copy it from the source directory to /boot manually (directly from its location in /usr/src). See "man 8 menu.4th" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...