Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jul 2022 17:57:55 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: About zfs upgrade
Message-ID:  <CAFDf7UJsoCWNFFMUM2jPCLgLqnJYaCAWo5FFVihZkpMR7iHKSA@mail.gmail.com>
In-Reply-To: <CB8A73EC-51CC-45F0-865E-72462DA595E5@FreeBSD.org>
References:  <CAFDf7U%2Bm1P5o56%2BefS1WVDoiVWwuCmZJW57ZTBOQcTpTX6yKog@mail.gmail.com> <CB8A73EC-51CC-45F0-865E-72462DA595E5@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000e9d97305e3ef09b4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Dimitry!

Thanks for the tips. zfs upgraded, bootcode updated and system working fine=
.

Cheers,

Nuno Teixeira

Dimitry Andric <dim@freebsd.org> escreveu no dia s=C3=A1bado, 16/07/2022 =
=C3=A0(s)
17:17:

> On 16 Jul 2022, at 18:09, Nuno Teixeira <eduardo@freebsd.org> wrote:
> > I'm about to upgrade zfs pool and I need to know the command to update
> boot code on my efi config:
> > ---
> >  gpart show
> > =3D>        40  2000409184  nvd0  GPT  (954G)
> >           40      532480     1  efi  (260M)
> >       532520        2008        - free -  (1.0M)
> >       534528     8388608     2  freebsd-swap  (4.0G)
> >      8923136  1991485440     3  freebsd-zfs  (950G)
> >   2000408576         648        - free -  (324K)
> > ---
> > Handbook says:
> > gpart bootcode -p /boot/boot1.efifat -i 1 ada1
> >
> > Should I use:
> > gpart bootcode -p /boot/boot1.efifat -i 1 nvd0p1 ?
>
> For gpart, you should specify the base device, i.e. nvd0. The "-i 1"
> option indicates the partition.
>
> In any case, assuming FreeBSD 13 or later, you can just mount the EFI
> partition and copy loader.efi over:
>
> mount -t msdosfs /dev/nvd0p1 /mnt
> cp /mnt/efi/boot/bootx64.efi /mnt/efi/boot/bootx64.old
> cp /boot/loader.efi /mnt/efi/boot/bootx64.efi
>
> That way you could also revert to bootx64.old if things go wrong.
>
> -Dimitry
>
>

--000000000000e9d97305e3ef09b4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div>Hello Dimitry!<br><br></div>Thanks for the =
tips. zfs upgraded, bootcode updated and system working fine.<br><br></div>=
Cheers,<br><br></div>Nuno Teixeira<br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">Dimitry Andric &lt;<a href=3D"mailto:=
dim@freebsd.org">dim@freebsd.org</a>&gt; escreveu no dia s=C3=A1bado, 16/07=
/2022 =C3=A0(s) 17:17:<br></div><blockquote class=3D"gmail_quote" style=3D"=
margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex">On 16 Jul 2022, at 18:09, Nuno Teixeira &lt;<a href=3D"mailto:eduard=
o@freebsd.org" target=3D"_blank">eduardo@freebsd.org</a>&gt; wrote:<br>
&gt; I&#39;m about to upgrade zfs pool and I need to know the command to up=
date boot code on my efi config:<br>
&gt; ---<br>
&gt;=C2=A0 gpart show<br>
&gt; =3D&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 40=C2=A0 2000409184=C2=A0 nvd0=C2=
=A0 GPT=C2=A0 (954G)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A040=C2=A0 =C2=A0 =C2=A0 532480=
=C2=A0 =C2=A0 =C2=A01=C2=A0 efi=C2=A0 (260M)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0532520=C2=A0 =C2=A0 =C2=A0 =C2=A0 2008=C2=A0=
 =C2=A0 =C2=A0 =C2=A0 - free -=C2=A0 (1.0M)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0534528=C2=A0 =C2=A0 =C2=A08388608=C2=A0 =C2=
=A0 =C2=A02=C2=A0 freebsd-swap=C2=A0 (4.0G)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 8923136=C2=A0 1991485440=C2=A0 =C2=A0 =C2=A03=C2=
=A0 freebsd-zfs=C2=A0 (950G)<br>
&gt;=C2=A0 =C2=A02000408576=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0648=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 - free -=C2=A0 (324K)<br>
&gt; ---<br>
&gt; Handbook says:<br>
&gt; gpart bootcode -p /boot/boot1.efifat -i 1 ada1<br>
&gt; <br>
&gt; Should I use:<br>
&gt; gpart bootcode -p /boot/boot1.efifat -i 1 nvd0p1 ?<br>
<br>
For gpart, you should specify the base device, i.e. nvd0. The &quot;-i 1&qu=
ot; option indicates the partition.<br>
<br>
In any case, assuming FreeBSD 13 or later, you can just mount the EFI parti=
tion and copy loader.efi over:<br>
<br>
mount -t msdosfs /dev/nvd0p1 /mnt<br>
cp /mnt/efi/boot/bootx64.efi /mnt/efi/boot/bootx64.old<br>
cp /boot/loader.efi /mnt/efi/boot/bootx64.efi<br>
<br>
That way you could also revert to bootx64.old if things go wrong.<br>
<br>
-Dimitry<br>
<br>
</blockquote></div>

--000000000000e9d97305e3ef09b4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UJsoCWNFFMUM2jPCLgLqnJYaCAWo5FFVihZkpMR7iHKSA>