From owner-freebsd-questions@freebsd.org Sun Apr 29 16:38:19 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 C0A8FFB170B for ; Sun, 29 Apr 2018 16:38:19 +0000 (UTC) (envelope-from robert@webtent.org) Received: from mx2.webtent.net (mx2.webtent.net [216.139.202.4]) by mx1.freebsd.org (Postfix) with ESMTP id 6310B7860B for ; Sun, 29 Apr 2018 16:38:18 +0000 (UTC) (envelope-from robert@webtent.org) Received: from localhost (localhost [127.0.0.1]) by mx2.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTP id BF76AD78B8 for ; Sun, 29 Apr 2018 12:30:32 -0400 (EDT) Received: from mx2.webtent.net ([127.0.0.1]) by localhost (mx2.webtent.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 09112-06 for ; Sun, 29 Apr 2018 12:30:32 -0400 (EDT) Received: from [192.168.1.112] (media.rfitz.com [96.254.71.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: robert@mx2.webtent.net) by mx2.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTPSA id 4E294D7F1E for ; Sun, 29 Apr 2018 12:30:32 -0400 (EDT) Message-ID: <5AE5F327.3050702@webtent.org> Date: Sun, 29 Apr 2018 12:30:31 -0400 From: Robert Fitzpatrick User-Agent: Postbox 5.0.25 (Windows/20180328) MIME-Version: 1.0 To: FreeBSD Subject: Restoring bootcode Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: WebTent Mailguard 1.0.3 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: Sun, 29 Apr 2018 16:38:19 -0000 Something happens to the bootcode since an upgrade a while back and I've been starting this 10.4-RELEASE server at the loader OK prompt using 'set currdev=disk0s1a' and then boot. Here is the server system... root@dev:~ # gpart show => 63 41942977 ada0 MBR (20G) 63 41929587 1 freebsd [active] (20G) 41929650 13390 - free - (6.5M) => 0 41929587 ada0s1 BSD (20G) 0 1024000 1 freebsd-ufs (500M) 1024000 524288 2 freebsd-swap (256M) 1548288 20480000 4 freebsd-ufs (9.8G) 22028288 19901299 5 freebsd-ufs (9.5G) I've tried the following to install the boot code, but still ending up at the loader prompt... root@dev:~ # gpart bootcode -b /boot/mbr ada0 bootcode written to ada0 I also tried with ada0s1 with same result. Clearly I don't understand how to get this done, can someone help? -- Robert