I've got this set up efi system partition fat32, FreeBSD, and Slackware on an 2tb nvme in linux it is seen as nvme (aka sdb), in here it is dev/nvd0. Using that designation in efibootmgr does not work.
I have the efi mounted in fstab (like in Linux)
I took and used the one Slackware uses fat32 in Linux and added the loader.efi into it as in here,
the boot partition is located on here,
this first partition/slice is FreeBSDs EFI system fat16 (?).
trying to add it to efibootmgr I get
gpart
what would be the drive designation? nvd0 is not working, and nvme0 does not work either.
I have the efi mounted in fstab (like in Linux)
Code:
$ cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/nvd0p2 / ufs rw 1 1
/dev/nvd0p5 /boot/efi msdosfs rw 1 0
/dev/nvd0p3 /home ufs rw 2 2
/dev/nvd0p4 none swap sw 0 0
using FreeBSD dir name instead.cp /boot/loader.efi /mnt/EFI/BOOT/BOOTX64.efi
the boot partition is located on here,
Code:
fstyp /dev/nvd0p2
ufs
Code:
$ fstyp /dev/nvd0p1
msdosfs
[/ocde]
incase one might be wonder what is /dev/nvd0p1 being used for.
efibootmgr showing in FreeBSD. it is to me like there are two separate efibootmgr's one on each system??? I am still a bit new to this type of booting system...
[code]
userx@FreeBSD.Yo.org:~
$ sudo efibootmgr
BootCurrent: 0009
Timeout : 0 seconds
BootOrder : 0009, 0008, 000E, 0011, 000C, 000A, 0000, 0001, 0002, 0003, 0004, 0005, 0006, 0007
+Boot0009* slackware-14.2+
Boot0008* Windows Boot Manager
Boot000E USB:
Boot0011 USB:
Boot000C* ST2000LM007-1R8174 :
Boot000A* SPCC M.2 PCIe SSD-296D079612A00022219:
Boot0000 Startup Menu
Boot0001 System Information
Boot0002 Bios Setup
Boot0003 3rd Party Option ROM Management
Boot0004 System Diagnostics
Boot0005 System Diagnostics
Boot0006 System Diagnostics
Boot0007 System Diagnostics
Code:
userx@FreeBSD.Yo.org:~
$ sudo efibootmgr -c -d /dev/nvd0 -p 2 -l \EFI\FreeBSD\BOOTX64.efi -L "FreeBSD"
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]]
userx@FreeBSD.Yo.org:~
$ sudo efibootmgr -c -d /dev/nvd0 -p 2 -l \EFI\FreeBSD\BOOTX64.efi -L "FreeBSD"
gpart
Code:
$ gpart show
=> 40 4000797287 nvd0 GPT (1.9T)
40 2048 1 efi (1.0M)
2088 73400320 2 freebsd-ufs (35G)
73402408 157286400 3 freebsd-ufs (75G)
230688808 6291456 4 freebsd-swap (3.0G)
236980264 2008 - free - (1.0M)
236982272 194560 5 efi (95M)
237176832 78125056 6 linux-data (37G)
315301888 146485248 7 linux-data (70G)
461787136 3539010184 8 linux-data (1.6T)
4000797320 7 - free - (3.5K)
Code:
$ ls /dev/nv*
/dev/nvd0 /dev/nvd0p3 /dev/nvd0p6 /dev/nvme0
/dev/nvd0p1 /dev/nvd0p4 /dev/nvd0p7 /dev/nvme0ns1
/dev/nvd0p2 /dev/nvd0p5 /dev/nvd0p8
Code:
$ sudo efibootmgr -c -d /dev/nvme0 -p 2 -l \EFI\FreeBSD\BOOTX64.efi -L "FreeBSD"
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]]
what would be the drive designation? nvd0 is not working, and nvme0 does not work either.