I am trying to use efibootmgr to be able to multiboot different versions of freebsd and maybe even some other operating systems. But, I am a bit confused about how to correlate the efibootmgr identifier to the /dev/dax or /dev/gpt/ device names. I have three hard disks ( /dev/da0, /dev/da1, /dev/da2 ) that each have an ESP partition ( EFI partition ) at GPT partition number 13.
I am really close and maybe have a solution but wonder if anyone can explain why the lun ids I am getting from
Example from my system:
Also, the following also suggests a correlation of the efibootmgr labels to scsi bus target numbers ( inital boot order was 0,2,5 before I modified it ).
And, just in case anyone is still reading this too long post we have the following:
All advice and ideas welcome!
I am really close and maybe have a solution but wonder if anyone can explain why the lun ids I am getting from
geom disk list
is different ( by a value of 2 ) than the lun id's that I see in the efibootmgr -v output
?Example from my system:
Code:
root@here:/usr/home/me # foreach x ( 0 1 2 )
foreach? echo /dev/da$x :
foreach? geom disk list da$x | grep lunid
foreach? end
/dev/da0 :
lunid: 5000c50026029eb7
/dev/da1 :
lunid: 5000c50026398b9b
/dev/da2 :
lunid: 5000c50026353cef
Code:
root@here:/usr/home/me # efibootmgr -v
BootCurrent: 0002
Timeout : 0 seconds
BootOrder : 0002, 0000, 0005, 0001
+Boot0002* EFI Fixed Disk Boot Device 2 PcieRoot(0x0)/Pci(0x4,0x0)/Pci(0x0,0x0)/SAS(0x[COLOR=rgb(235, 107, 86)]5000c50026353ced[/COLOR],0x0,0x1,SAS,External,Direct,0,0x0)/HD(13,GPT,5adc7cec-217c-11ed-9295-782bcb02e2bc,0x3000028,0x104000)
Boot0000* EFI Fixed Disk Boot Device 1 PcieRoot(0x0)/Pci(0x4,0x0)/Pci(0x0,0x0)/SAS(0x[COLOR=rgb(147, 101, 184)]5000c50026029eb5[/COLOR],0x0,0x1,SAS,External,Direct,0,0x0)/HD(13,GPT,5b694d58-217c-11ed-9295-782bcb02e2bc,0x3000028,0x104000)
Boot0005* EFI Fixed Disk Boot Device 3 PcieRoot(0x0)/Pci(0x4,0x0)/Pci(0x0,0x0)/SAS(0x[COLOR=rgb(84, 172, 210)]5000c50026398b99[/COLOR],0x0,0x1,SAS,External,Direct,0,0x0)/HD(13,GPT,5aa830bc-217c-11ed-9295-782bcb02e2bc,0x3000028,0x104000)
Boot0001* PLDS DVD+/-RW DS-8A5SH PcieRoot(0x0)/Pci(0x1f,0x2)/Ata(Primary,Master,0x0)
Unreferenced Variables:
Boot0004* FreeBSD HD(1,GPT,f5de00f2-0ca9-11ed-85fc-782bcb02e2bc,0x28,0x82000)/File(\efi\freebsd\loader.efi)
root@here:/usr/home/me #
Code:
root@here:/usr/home/me # camcontrol devlist
<SEAGATE ST32000445SS MS02> at scbus0 target 0 lun 0 (pass0,da0)
<SEAGATE ST32000445SS MS02> at scbus0 target 2 lun 0 (pass1,da1)
<SEAGATE ST32000445SS MS02> at scbus0 target 5 lun 0 (pass2,da2)
Code:
root@here:/usr/home/me # efibootmgr -E
efibootmgr: Can't convert to unix path
root@here:/usr/home/me # efibootmgr -Ed
PcieRoot(0x0)
root@here:/usr/home/me # efibootmgr -Ep
efibootmgr: Can't convert to unix path