Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2025 13:11:47 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        questions@freebsd.org
Subject:   Re: Replacing a REMOVED drive in DEGRADED zpool
Message-ID:  <d2110a5e-8627-4449-87e6-9656dfac42cb@holgerdanske.com>
In-Reply-To: <86ect3xtyl.fsf@ltc.des.dev>
References:  <b23924e3-b07f-44ec-ac30-2e3bae37a525@webtent.org> <bda11ba5-3b52-4f5d-9786-0fe190e07b1a@holgerdanske.com> <86bjo9kvsv.fsf@ltc.des.dev> <c08fc246-a6de-47e7-ab3e-19c3d3815704@webtent.org> <86v7mgjy4c.fsf@ltc.des.dev> <5a74d92e-e6cc-4870-80fb-f2f1184b4d3e@webtent.org> <ba8bf716-a8ba-459d-91c5-148cad943aa7@holgerdanske.com> <86349jkdh4.fsf@ltc.des.dev> <51700a54-8c75-4603-a025-3e2b900421b8@webtent.org> <86ect3xtyl.fsf@ltc.des.dev>

index | next in thread | previous in thread | raw e-mail

On 8/22/25 08:21, Dag-Erling Smørgrav wrote:
> Robert <robert@webtent.org> writes:
>> So, I would not need to examine the disks for the same MBR and just
>> use the gpart bootcode above on the new disk?
> 
> Yes.  And if you haven't done so in a while (i.e. not since your last
> upgrade), I would run `gpart bootcode` on all disks.  You can combine -b
> and -p in a single command, e.g.
> 
>      gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
> 
> DES


Thank you for clarifying the straight-forward method for installing the 
MBR bootstrap code and the FreeBSD boot partition bootloader code.


In the general case, the FreeBSD installer or sysadmin needs to figure 
out which bootcode to use, which partcode to use, and which geom to use. 
  I have RTFM gpart(8) several times now, but it is taking me a while to 
get a mental picture of the FreeBSD bootstrap decision tree formed by 
firmware (BIOS vs. UEFI) and sysamin choices (partition/slice scheme, 
volume management, filesystem, etc.).  Is there a single document that 
clearly explains all of this stuff?


David



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d2110a5e-8627-4449-87e6-9656dfac42cb>