Re: EFI amd64: boot.cfg goes where?

"DTB" <[email protected]> Tue, 04 Aug 2026 09:16:55 -0600
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
Thank you all for the patient help. It appears I am a bit more a fool
than I initially believed...

On Mon Aug 3, 2026 at 4:11 PM MDT, RVP wrote:
> How did you manage to create a disklabel on a GPT partitioned (and UEFI b=
ooted)
> system? It's a bit of a circus to do this.

I mistakenly wrote disklabel instead of saying my root FFSv2ea
partition. My GPT drive does not have any disklabel partitions on it.
I'm new to GPT in general as I have only ever used MBR on
x86-compatibles, but I've been getting used to the Raspberry Pi boot
process and GPT is similar enough that I decided to dip my toes in.
disklabel is force of habit for me but I did read the guide very closely
while installing so thankfully I did not manage this.

In particular I'm glad you mentioned gpt(8) below because I had been
confused by my fdisk(8) outputs -- I've been sitting at one table and
talking to those at another!

>> fdisk is worryingly printing
>>> fdisk: /dev/rdk3: DIOCGDEFLABEL: Inappropriate ioctl for device
>
> It would because fdisk should be given disk names, not wedges. Run
> `sysctl hw.disknames' to get a list of disk names (omit any dk*).

Thank you very much, I was worried I had messed up my system somehow...

>Can you show the output of:
> sysctl machdep.bootmethod
machdep.bootmethod =3D UEFI
> fdisk wd0		# or, sd0, ld0, wd1, ...
fdisk: Cannot determine the number of heads
Disk: /dev/rwd0
NetBSD disklabel disk geometry:
cylinders: 969021, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 976773168, bytes/sector: 512

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 976773168

Partitions aligned to 16065 sector boundaries, offset 63

Partition table:
0: GPT Protective MBR (sysid 238)
    start 1, size 976773167 (476940 MB, Cyls 0/0/2-60801/80/63)
        PBR is not bootable: Bad magic number (0x0000)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)
> gpt show wd0
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34       2014         Unused
       2048    2097152      1  GPT part - EFI System
    2099200  134217728      2  GPT part - Windows basic data
  136316928  134217728      3  GPT part - Linux data
  270534656  268435456      4  GPT part - NetBSD FFSv1/FFSv2
  538970112       2048         Unused
  538972160    4194304      5  GPT part - NetBSD swap
  543166464  433606671         Unused
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header

> PS. if any of the GPT partitions have a `bootme' attribute, just get rid =
of it.
How could I find out?

Thank you all for your help, I'll have more time to test solutions
presented in these e-mails later today and will be re-reading all
mentioned man pages a bit more carefully.

<3 :3 -3