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

[-- Attachment #1 --]


> On 13 Aug 2024, at 15:38, Warner Losh <imp@bsdimp.com> wrote:
> 
> 
> 
> On Tue, Aug 13, 2024, 12:11 AM 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’t boot the second partition:
>> (the hardware is a bit old, Dell PowerEdge R710 with bios from 05/22/2018)
>> 
>> store-08# gpart show -l
>> =>        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)
>> 
>> it only boots from partition 2.
>> 
>> so is there any magic?
> 
> 
> 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 :-) 
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   

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’s because I can change the boot sequence via DHCP)


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


[-- Attachment #2 --]
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On 13 Aug 2024, at 15:38, Warner Losh &lt;imp@bsdimp.com&gt; wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div dir="auto" style="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="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 13, 2024, 12:11 AM Daniel Braniss &lt;<a href="mailto:danny@cs.huji.ac.il">danny@cs.huji.ac.il</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="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="Apple-converted-space">&nbsp;</span>my disk has 2 root partitions, and once I switched to UEFI boot, can’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>=&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="Apple-converted-space">&nbsp;</span>81960&nbsp; &nbsp; &nbsp;8388608&nbsp; &nbsp; &nbsp; 2&nbsp; root&nbsp; (4.0G)<br>&nbsp; &nbsp;<span class="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="auto"><br></div><div dir="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="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">store-08# efibootmgr</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">BootCurrent: 0000</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Timeout &nbsp;&nbsp;&nbsp;: 0 seconds</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">BootOrder &nbsp;: 0002, 0000, 0001</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Boot0002* Broadcom NetXtreme II Gigabit Ethernet (BCM5709)</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">+Boot0000* EFI Fixed Disk Boot Device 1</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Boot0001* TSSTcorp DVD+/-RW TS-L633C &nbsp;&nbsp;</span></div><div><font color="#000000"><span style="caret-color: rgb(0, 0, 0);"><br></span></font></div><div><font color="#000000">At some point I succeeded in deleting the dvd, but now I see its back.</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">So how do I add a second boot partition?</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">(If the&nbsp;sequence look&nbsp;fishy, it’s because I can change the boot sequence via DHCP)</font></div><div><font color="#000000"><br></font></div><div><font color="#000000"><br></font><blockquote type="cite"><div><div dir="auto" style="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="auto"><br></div><div dir="auto">Or better yet, use boot environments. They are so much nicer than ufs ping pongs.</div><div dir="auto"><br></div><div dir="auto">Warner</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="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="Apple-converted-space">&nbsp;</span>danny</blockquote></div></div></div></div></blockquote></div><br></body></html>

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