Solved UEFI - efibootmgr- how to?

OK I was moving around my fat32 uefi partition on my laptop, being my first time. now second time....

I got this
Code:
$ sudo efibootmgr -v
BootCurrent: 0000
Timeout    : 0 seconds
BootOrder  : 0001, 0002, 0000
Boot0001* slackware-14.2+ HD(1,GPT,d0b1076d-0768-4088-808b-37440a968aed,0x800,0xfa000)/File(\EFI\slackware-14.2+\grubx64.efi)
                              ada0p1:/EFI/slackware-14.2+/grubx64.efi (null)
Boot0002* FreeBSD 12.1 HD(6,GPT,21a6f531-020b-11ea-9449-480fcf2a5b40,0x15a9c800,0x64000)/File(\efi\boot\BOOTx64.efi)
                           ada1p6:/efi/boot/BOOTx64.efi (null)
+Boot0000* Windows Boot Manager HD(1,GPT,d0b1076d-0768-4088-808b-37440a968aed,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)
                                   ada0p1:/EFI/Microsoft/Boot/bootmgfw.efi (null)


Unreferenced Variables:
from FreBSD, I moved my windows, linux efi boot partition back onto my second drive that has my OSes on it, all of them, because I got this HP 840 g2 with a PCIe stick that is 250GB that I use that for the OS and a 500GB ssd for storage and it makes the PCIe drive the second drive. sdb or ada1 depending on what system is looking at it.
Code:
$ sudo gpart show
=>       34  976773101  ada0  GPT  (466G)
         34       2014        - free -  (1.0M)
       2048    1024000     1  ms-basic-data  (500M)
    1026048  975747072     2  linux-data  (465G)
  976773120         15        - free -  (7.5K)

=>       34  500118125  ada1  GPT  (238G)
         34       2014        - free -  (1.0M)
       2048   72704000     1  ms-basic-data  (35G)
   72706048   52224000     2  linux-data  (25G)
  124930048   63082496     3  linux-data  (30G)
  188012544  174891008     4  linux-data  (83G)
  362903552     512000     9  efi  (250M)
  363415552      32768     5  ms-reserved  (16M)
  363448320     409600     6  efi  (200M)
  363857920  129613824     7  freebsd-ufs  (62G)
  493471744    6646415     8  freebsd-swap  (3.2G)

=>        34  3906963389  da0  GPT  (1.8T)
          34        2014       - free -  (1.0M)
        2048  3906959360    1  linux-data  (1.8T)
  3906961408        2015       - free -  (1.0M)

=>        34  3906963389  diskid/DISK-575848314539335255433334  GPT  (1.8T)
          34        2014                                        - free -  (1.0M)
        2048  3906959360                                     1  linux-data  (1.8T)
  3906961408        2015                                        - free -  (1.0M)

now when I boot off of that drive it selects FreeBSD EFI partition and boots Freebsd efi file. how do I get this efibootmgr to actaully take over and do what it is suppose to do?
 
Code:
$ sudo mkdir EFI
userx@FreeBSD.edy:/mnt/efi
$ ls
EFI     FreeBSD boot
userx@FreeBSD.edy:/mnt/efi
$ sudo mv -v FreeBSD EFI
FreeBSD -> EFI/FreeBSD
userx@FreeBSD.edy:/mnt/efi
$ ls
EFI     boot


userx@FreeBSD.edy:/mnt/efi
$ su
Password:
[root@FreeBSD /mnt/efi]# efibootmgr -c -d /dev/ada1 -p 6 /EFI/FreeBSD/loader1.efi -L "FreeBSD 12.1"
efibootmgr: invalid option -- d
efibootmgr:    [-aAnNB Bootvar] [-t timeout] [-T] [-o bootorder] [-O] [--verbose] [--help]
  [-c -l loader [-k kernel ] [-L label] [--dry-run] [-b Bootvar]]
FAIL
FAIL


wtf ??
this is where a copy of loader1.efi is at now
Code:
[root@FreeBSD /mnt/efi]# ls /mnt/efi/EFI/FreeBSD
boot1.efi
------------------------------------------
efibootmgr:    [-aAnNB Bootvar] [-t timeout] [-T] [-o bootorder] [-O] [--verbose] [--help]
  [-c -l loader [-k kernel ] [-L label] [--dry-run] [-b Bootvar]]
[root@FreeBSD /mnt/efi]# efibootmgr -c  -l /EFI/FreeBSD/loader1.efi -L "FreeBSD 12.1"
efibootmgr: Cannot translate unix loader path '\EFI\FreeBSD\loader1.efi' to UEFI: No such file or directory
[root@FreeBSD /mnt/efi]# efibootmgr -c  -l /efi/EFI/FreeBSD/loader1.efi -L "FreeBSD 12.1"
efibootmgr: Cannot translate unix loader path '\efi\EFI\FreeBSD\loader1.efi' to UEFI: No such file or directory
[root@FreeBSD /mnt/efi]# efibootmgr -c  -l \EFI\FreeBSD\loader1.efi -L "FreeBSD 12.1"
efibootmgr: Cannot translate unix loader path 'EFIFreeBSDloader1.efi' to UEFI: No such file or directory
 
anyways, I ended up having to reestablish my efi partition on the same drive because I wanted to, and reading that 1st post I link in here, aying the boot is default if the BIOS cannot find anything else to use it uses that bootx64.efi, I moved windows one out and put in grubx64.efi -> bootx64.efi so it defualts to grabing that and I get my linux grub efi menu ... efibootmgr is useless on my system.
 
Back
Top