Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: boot.cfg dev command not working



On Wed, 26 Mar 2025, Paul Goyette wrote:

 Here's my current info - what would you want me to try?  And if the
 wrong thing gets deleted, how do I recover?

 # efi -v
 Boot0004* UEFI OS
 HD(1,GPT,143a1b62-7eee-4032-adf8-dfe20a383bdb,0x800,0x6400000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
 Boot0005* UEFI OS
 HD(1,GPT,adb5c6c6-f9fa-45b7-a332-5f52a4e7c0a5,0x800,0x19000)/File(\EFI\BOOT\BOOTX64.EFI)..BO


 If those 2 entried don't correspond to NetBSD's ESP partition, delete
 them:

 efi -B -b 4
 efi -B -b 5

HD1 is my recovery/backup hard drive which is bootable.  I'd rather
not delete...


efi(8) just manipulates EFI variables in NVRAM: it shouldn't make any changes
on a disk. Plus, those entries don't look right; they say:

Boot0004 == partn. 1, start = 0x800, size = 0x6400000
Boot0005 == partn. 1, start = 0x800, size = 0x19000

You shouldn't have 2 partitions starting at the same location, with 2 diff.
sizes and UUIDs. How'd this happen?

 And if the wrong thing gets deleted, how do I recover?

After booting the HD1 recovery image?  :)


Or, a USB-stick? Or, add entries in the BIOS? With UEFI, these things are
a lot less catastrophic :).

-RVP


Home | Main Index | Thread Index | Old Index