From owner-freebsd-questions@freebsd.org Fri Nov 6 22:07:49 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 CCE752D474D for ; Fri, 6 Nov 2020 22:07:49 +0000 (UTC) (envelope-from bob@rancor.immure.com) Received: from rancor.immure.com (108-84-10-9.lightspeed.austtx.sbcglobal.net [108.84.10.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "darth.immure.com", Issuer "darth.immure.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CSZJN6qSdz4rLn for ; Fri, 6 Nov 2020 22:07:48 +0000 (UTC) (envelope-from bob@rancor.immure.com) Received: from rancor.immure.com (localhost [127.0.0.1]) by rancor.immure.com (8.15.2/8.15.2) with ESMTPS id 0A6M7lOd047573 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 6 Nov 2020 16:07:47 -0600 (CST) (envelope-from bob@rancor.immure.com) Received: (from bob@localhost) by rancor.immure.com (8.15.2/8.15.2/Submit) id 0A6M7lMB047572 for freebsd-questions@freebsd.org; Fri, 6 Nov 2020 16:07:47 -0600 (CST) (envelope-from bob) Date: Fri, 6 Nov 2020 16:07:47 -0600 From: Bob Willcox To: questions list Subject: Re: Ran gpart bootcode ... now system won't boot Message-ID: <20201106220747.GC22730@rancor.immure.com> Reply-To: Bob Willcox References: <20201106203524.GB22730@rancor.immure.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201106203524.GB22730@rancor.immure.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 4CSZJN6qSdz4rLn X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of bob@rancor.immure.com has no SPF policy when checking 108.84.10.9) smtp.mailfrom=bob@rancor.immure.com X-Spamd-Result: default: False [1.20 / 15.00]; HAS_REPLYTO(0.00)[bob@immure.com]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[108.84.10.9:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[immure.com]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[108.84.10.9:from:127.0.2.255]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[bob@immure.com,bob@rancor.immure.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7018, ipnet:108.64.0.0/11, country:US]; FROM_NEQ_ENVFROM(0.00)[bob@immure.com,bob@rancor.immure.com]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_COUNT_TWO(0.00)[2] 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: Fri, 06 Nov 2020 22:07:49 -0000 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 > > -- > Bob Willcox | It's possible that the whole purpose of your life is to > bob@immure.com | serve as a warning to others. > Austin, TX | > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Bob Willcox | It's possible that the whole purpose of your life is to bob@immure.com | serve as a warning to others. Austin, TX |