From owner-freebsd-questions@freebsd.org Sat Nov 7 03:38:14 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 834542E086E for ; Sat, 7 Nov 2020 03:38:14 +0000 (UTC) (envelope-from mattik@gwsit.com.au) Received: from se4.syd.hostingplatform.net.au (se4.syd.hostingplatform.net.au [IPv6:2400:b800:4::52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CSjdc3Lsyz3kfw for ; Sat, 7 Nov 2020 03:38:12 +0000 (UTC) (envelope-from mattik@gwsit.com.au) Received: from s02ad.syd2.hostingplatform.net.au ([103.27.32.38]) by se4.syd.hostingplatform.net.au with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1kbF30-0008Vh-Jz for freebsd-questions@freebsd.org; Sat, 07 Nov 2020 14:37:58 +1100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gwsit.com.au; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=E1cLO1knNeLJIlVTG/46ENhCofKrkd4Hqbu3QdlPGN0=; b=agVQVMs73zB2C39DOUEPT/kEq4 coyegSV+r0JiOV+JtjyMNV0zaidEnUprbKISqS6EgTExfYVl+hJ2GCX//7/NlQ94K9ZoX182OYMs6 RB5tLYELTbFbmchRrr6lSMW17FzAIGlVdcnP/d8dBntTK4OhEsAJ/sUf9WWW9PeF/5lWBdIhKwYr2 dP37PvYaCu2at83gFV1Y2xfU/0JLHbl498cbnO/a8QoncWTiDqSrWWuaUnu54tBDVcroHOuOsC4Tt wHm6HAc6vx25q6k5HAMeA3oJwmChyO7RiHdo7YxBO0AsdnyauAJAkATShyNyhEOBT7RsUSOek3OKV wrhyS8qA==; Received: from 180-150-31-87.b4961f.syd.static.aussiebb.net ([180.150.31.87]:65011 helo=ws1.wobblyboot.net) by s02ad.syd2.hostingplatform.net.au with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kbF2y-0021AG-Q1; Sat, 07 Nov 2020 14:37:48 +1100 Date: Sat, 7 Nov 2020 14:37:45 +1100 From: matti k To: Bob Willcox Cc: questions list Subject: Re: Ran gpart bootcode ... now system won't boot Message-ID: <20201107143745.110b5059@ws1.wobblyboot.net> In-Reply-To: <20201106220747.GC22730@rancor.immure.com> References: <20201106203524.GB22730@rancor.immure.com> <20201106220747.GC22730@rancor.immure.com> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s02ad.syd2.hostingplatform.net.au X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gwsit.com.au X-Get-Message-Sender-Via: s02ad.syd2.hostingplatform.net.au: authenticated_id: mattik@gwsit.com.au X-Authenticated-Sender: s02ad.syd2.hostingplatform.net.au: mattik@gwsit.com.au X-Source: X-Source-Args: X-Source-Dir: X-Originating-IP: 103.27.32.38 X-SpamExperts-Domain: out-2.hostyourservices.net X-SpamExperts-Username: 103.27.32.38 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.07) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0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W6zfJOjR254PA1pHnsTSs8GP3PifSW8x2Zoh6cUZfaQVoCg8 cR+lE/4rgHk6YmT1vgyONRpg7xGgKGCySQ== X-Report-Abuse-To: spam@se.syd.hostingplatform.net.au X-Rspamd-Queue-Id: 4CSjdc3Lsyz3kfw X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gwsit.com.au header.s=default header.b=agVQVMs7; dmarc=pass (policy=none) header.from=gwsit.com.au; spf=pass (mx1.freebsd.org: domain of mattik@gwsit.com.au designates 2400:b800:4::52 as permitted sender) smtp.mailfrom=mattik@gwsit.com.au X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; HAS_X_SOURCE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gwsit.com.au:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gwsit.com.au,none]; NEURAL_HAM_SHORT(-1.00)[-0.998]; HAS_X_ANTIABUSE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2400:b800:4::52:from]; ASN(0.00)[asn:45638, ipnet:2400:b800:4::/48, country:AU]; HAS_X_AS(0.00)[mattik@gwsit.com.au]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gwsit.com.au:s=default]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[2400:b800:4::52:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; HAS_X_GMSV(0.00)[mattik@gwsit.com.au]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2020 03:38:14 -0000 On Fri, 6 Nov 2020 16:07:47 -0600 Bob Willcox wrote: > On Fri, Nov 06, 2020 at 02:35:25PM -0600, Bob Willcox wrote: > > Hi All, > > > > I believe I just hosed up one of my systems to the point that it no > > longer can boot. I updated my zroot zfs pool following an uprade of > > the system from 12.1-stable to 12.2-stable. When I did the 'zpool > > upgrad zroot' it prompted me to run this command: > > > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 > > > > So, I adjusted the command to be this since my root is on an nvme > > drive: > > > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 nvd0 > > > > That ran ok (no errors) however when I now try to boot the system > > it drops into BIOS claiming that there is no boot disk. > > > > So, can anyone tell me what I did wrong here and how can I recover > > from it? > > > > Thanks in advance, > > Bob > > I noticed that I likely used the wrong index value, 1, when I ran the > command as I doubt that that is correct for my drive. I'm not sure > since I haven't been able to boot the system from a thumb drive yet > (work getting in the way), but will be doing that. Is it likely that > updating the wrong partion (wrond index) would cause the BIOS to not > find a boot drive? > > Thanks, > Bob Hi Bob Is it booting to a mountroot prompt? I had a similar issue after upgrading 12.1-RELEASE to 12.2-RELEASE using freebsd-update It would boot to a mountroot prompt more times than not, you can just hit the return key at the mountroot and it will reboot I did try upgrading the motherboard (AsRock) BIOS and the bootcode using zpool upgrade zroot but this did not help - in my case value 1 is efi and value 2 is freebsd-boot so used 2 What did fix it was going into BIOS setup and changing the first boot device from UEFI to the NVMe drive (basically stopped using UEFI boot) Cheers, Matti