Re: gpart: warning (was: Unable to boot from internal hard disks on new PC)

From: Johannes-Maria Kaltenbach <johannes-maria_at_t-online.de>
Date: Tue, 27 Dec 2022 13:53:17 UTC
On Tue, Dec 27, 2022 at 01:04:10PM +0000, Graham Perrin wrote:
> On 27/12/2022 11:08, Johannes-Maria Kaltenbach wrote:
>
> > … FreeBSD-13.1-RELEASE-amd64-memstick.img …
>
> > ada0p1 freebsd-boot (512k)
> > ada0p2 efi (100m)
> > ada0p3 freebsd-swap (32g)
> > ada0p4 freebsd-ufs (200g, 13.1 base system)
> > (and further partitions for var, tmp, poudriere, home; still unused)
> >
> > and I  tried the following
> >
> > gpart bootcode -b /boot/pmbr ada0
> > gpart bootcode -p /boot/gptboot -i 1 ada0
> >
> > …
>
>
> From <https://www.freebsd.org/releases/13.0R/relnotes/#boot>, with added
> emphasis:

sorry, I overlooked this

> >> … To update old ESP partitions, users should *stop using the gpart(8)
> >> utility*. …

I hope I understood this correctly:

I deleted the partition ada0p1
(the freebsd-boot with gpart bootcode -p /boot/gptboot -i 1 ada0)

and on ada0p2 (efi), mounted on /mnt, I have:

|# ls -lR /mnt
|total 8
|drwxr-xr-x  1 root  wheel  8192 Apr 16  2018 efi
|
|/mnt/efi:
|total 8
|drwxr-xr-x  1 root  wheel  8192 Apr 16  2018 boot
|
|/mnt/efi/boot:
|total 880
|-rwxr-xr-x  1 root  wheel  892928 Dec 27 14:24 BOOTx64.efi

where BOOTx64.efi is the /boot/loader.efi from the install medium.

But this didn't change anything.
Still I don't see the disks in bios or in the efibootmgr output.


Best regards,
Johannes-Maria