Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2024 16:30:03 +0300
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-hackers <hackers@freebsd.org>
Subject:   Re: FreeBSD 14.1 and UEFI boot ignores bootme flag
Message-ID:  <DC5F602B-894C-482F-9519-BB057B6DBB10@cs.huji.ac.il>
In-Reply-To: <CANCZdfoqJkcgvG_oS_nQfQABvq8E5sQO7piggj_42Qf=6iA3PA@mail.gmail.com>
References:  <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il> <CANCZdfoqJkcgvG_oS_nQfQABvq8E5sQO7piggj_42Qf=6iA3PA@mail.gmail.com>

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

--Apple-Mail=_2452C292-5739-4EA3-AE2C-FF1C0B7C3177
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On 13 Aug 2024, at 15:38, Warner Losh <imp@bsdimp.com> wrote:
>=20
>=20
>=20
> On Tue, Aug 13, 2024, 12:11=E2=80=AFAM Daniel Braniss =
<danny@cs.huji.ac.il <mailto:danny@cs.huji.ac.il>> wrote:
>> hi,
>>         my disk has 2 root partitions, and once I switched to UEFI =
boot, can=E2=80=99t boot the second partition:
>> (the hardware is a bit old, Dell PowerEdge R710 with bios from =
05/22/2018)
>>=20
>> store-08# gpart show -l
>> =3D>        40  5857345456  mfid0  GPT  (2.7T)
>>          40       81920      1  efi  (40M)
>>       81960     8388608      2  root  (4.0G)
>>     8470568     8388608      3  root0  [bootme]  (4.0G)
>>    16859176     8388608      4  d1  (4.0G)
>>    25247784     8388608      5  d2  (4.0G)
>>    33636392  5823709104      6  zfs  (2.7T)
>>=20
>> it only boots from partition 2.
>>=20
>> so is there any magic?
>=20
>=20
> Use efibootmgr. Bootme flags are non-standard and have been ignored in =
UEFI since the start.

I read the man for efibootmgr but it was way above my pay grade :-)=20
I tried add/create but got nowhere.

store-08# efibootmgr
BootCurrent: 0000
Timeout    : 0 seconds
BootOrder  : 0002, 0000, 0001
Boot0002* Broadcom NetXtreme II Gigabit Ethernet (BCM5709)
+Boot0000* EFI Fixed Disk Boot Device 1
Boot0001* TSSTcorp DVD+/-RW TS-L633C  =20

At some point I succeeded in deleting the dvd, but now I see its back.

So how do I add a second boot partition?

(If the sequence look fishy, it=E2=80=99s because I can change the boot =
sequence via DHCP)


>=20
> Or better yet, use boot environments. They are so much nicer than ufs =
ping pongs.
>=20
> Warner
>=20
>> thanks,
>>         danny


--Apple-Mail=_2452C292-5739-4EA3-AE2C-FF1C0B7C3177
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On 13 Aug 2024, at 15:38, Warner Losh =
&lt;imp@bsdimp.com&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><div =
dir=3D"auto" style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: 400; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Tue, Aug 13, 2024, 12:11=E2=80=AFAM Daniel =
Braniss &lt;<a =
href=3D"mailto:danny@cs.huji.ac.il">danny@cs.huji.ac.il</a>&gt; =
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin: 0px =
0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; =
border-left-color: rgb(204, 204, 204); padding-left: 1ex;">hi,<br>&nbsp; =
&nbsp; &nbsp; &nbsp;<span class=3D"Apple-converted-space">&nbsp;</span>my =
disk has 2 root partitions, and once I switched to UEFI boot, can=E2=80=99=
t boot the second partition:<br>(the hardware is a bit old, Dell =
PowerEdge R710 with bios from 05/22/2018)<br><br>store-08# gpart show =
-l<br>=3D&gt;&nbsp; &nbsp; &nbsp; &nbsp; 40&nbsp; 5857345456&nbsp; =
mfid0&nbsp; GPT&nbsp; (2.7T)<br>&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;40&nbsp; &nbsp; &nbsp; &nbsp;81920&nbsp; &nbsp; &nbsp; 1&nbsp; =
efi&nbsp; (40M)<br>&nbsp; &nbsp; &nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span>81960&nbsp; &nbsp; =
&nbsp;8388608&nbsp; &nbsp; &nbsp; 2&nbsp; root&nbsp; (4.0G)<br>&nbsp; =
&nbsp;<span class=3D"Apple-converted-space">&nbsp;</span>8470568&nbsp; =
&nbsp; &nbsp;8388608&nbsp; &nbsp; &nbsp; 3&nbsp; root0&nbsp; =
[bootme]&nbsp; (4.0G)<br>&nbsp; &nbsp;16859176&nbsp; &nbsp; =
&nbsp;8388608&nbsp; &nbsp; &nbsp; 4&nbsp; d1&nbsp; (4.0G)<br>&nbsp; =
&nbsp;25247784&nbsp; &nbsp; &nbsp;8388608&nbsp; &nbsp; &nbsp; 5&nbsp; =
d2&nbsp; (4.0G)<br>&nbsp; &nbsp;33636392&nbsp; 5823709104&nbsp; &nbsp; =
&nbsp; 6&nbsp; zfs&nbsp; (2.7T)<br><br>it only boots from partition =
2.<br><br>so is there any magic?<br></blockquote></div></div><div =
dir=3D"auto"><br></div><div dir=3D"auto">Use efibootmgr. Bootme flags =
are non-standard and have been ignored in UEFI since the =
start.</div></div></div></blockquote><div><br></div>I read the man for =
efibootmgr but it was way above my pay grade :-)&nbsp;</div><div>I tried =
add/create but got nowhere.</div><div><br></div><div><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">store-08# =
efibootmgr</span><br style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, =
0, 0);"><span style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0);">BootCurrent: 0000</span><br style=3D"caret-color: rgb(0, 0, 0); =
color: rgb(0, 0, 0);"><span style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0);">Timeout &nbsp;&nbsp;&nbsp;: 0 seconds</span><br =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">BootOrder =
&nbsp;: 0002, 0000, 0001</span><br style=3D"caret-color: rgb(0, 0, 0); =
color: rgb(0, 0, 0);"><span style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0);">Boot0002* Broadcom NetXtreme II Gigabit Ethernet =
(BCM5709)</span><br style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0);"><span style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0);">+Boot0000* EFI Fixed Disk Boot Device 1</span><br =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Boot0001* =
TSSTcorp DVD+/-RW TS-L633C &nbsp;&nbsp;</span></div><div><font =
color=3D"#000000"><span style=3D"caret-color: rgb(0, 0, =
0);"><br></span></font></div><div><font color=3D"#000000">At some point =
I succeeded in deleting the dvd, but now I see its =
back.</font></div><div><font color=3D"#000000"><br></font></div><div><font=
 color=3D"#000000">So how do I add a second boot =
partition?</font></div><div><font =
color=3D"#000000"><br></font></div><div><font color=3D"#000000">(If =
the&nbsp;sequence look&nbsp;fishy, it=E2=80=99s because I can change the =
boot sequence via DHCP)</font></div><div><font =
color=3D"#000000"><br></font></div><div><font =
color=3D"#000000"><br></font><blockquote type=3D"cite"><div><div =
dir=3D"auto" style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: 400; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;"><div dir=3D"auto"><br></div><div dir=3D"auto">Or better yet, use =
boot environments. They are so much nicer than ufs ping pongs.</div><div =
dir=3D"auto"><br></div><div dir=3D"auto">Warner</div><div =
dir=3D"auto"><br></div><div dir=3D"auto"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin: =
0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; =
border-left-color: rgb(204, 204, 204); padding-left: =
1ex;">thanks,<br>&nbsp; &nbsp; &nbsp; &nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span>danny</blockquote></div></div=
></div></div></blockquote></div><br></body></html>=

--Apple-Mail=_2452C292-5739-4EA3-AE2C-FF1C0B7C3177--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DC5F602B-894C-482F-9519-BB057B6DBB10>