FreeBSD Doesn't Boot After-Installation

Hi,

I installed FreeBSD with manual partitioning (Because I am multibooting [OpenBSD,Linux Mint]). I setted them like this:
  • ada0p1 (EFI partiton) (automatically selected as EFI Partition and mountpoint is also automatically set to /boot/efi)
  • ada0p6 (FreeBSD partition. Uses UFS)
  • ada0p5 (FreeBSD Swap)
After Installation I booted from rEFInd and BIOS and both of them failed at boot. I tried to replacing loader.efi but it was not effective.
What should I do?View attachment 17640
20231212_200958.jpg
20231212_201310.jpg
 
If you already have rEFInd in the efi partition copy /boot/loader.efi to EFI/FreeBSD/loader.efi. REFInd should pick that up automagically. And you'll be able to select FreeBSD in rEFInd.
 
If you already have rEFInd in the efi partition copy /boot/loader.efi to EFI/FreeBSD/loader.efi. REFInd should pick that up automagically. And you'll be able to select FreeBSD in rEFInd.
I can select but FreeBSD EFI loader throws the error shown in picture 1
 
I can see it's trying all the other partitions, including the 6th partition, which you said contains an UFS installation. Double check if there's a /boot/ directory there. It's looking for a /boot/lua/loader.lua file. It's not there, it looks like the install on the UFS partition isn't complete.

You can boot the install media, pick shell. You can try to mount that UFS partition to inspect it. It looks like you're missing something.
 
If you are multibooting, I would definitely recommend Ventoy. It magically takes care of booting your booting options.
Ventoy on a PC? I have never heard of that. I use it on my usb stick but is it possible to boot the installed OSes with Ventoy?

EDIT: Reinstalling OS solved the problem but now sound is not working. It seems I have to open another topic.
 
Ventoy on a PC? I have never heard of that. I use it on my usb stick but is it possible to boot the installed OSes with Ventoy?

EDIT: Reinstalling OS solved the problem but now sound is not working. It seems I have to open another topic.

You just install on any device. I installed it on a USB attached hard disk. When you install it you leave plenty of room for as many partitions as you want to handle. Ventoy needs two partitions for itself, one for all the ISO's you want to boot. The size depends on how many you want to try.
The second partition holds the Ventoy 'magic' and it only takes up 32MB. I have a 500GB which is split up like this:

Code:
root@X61:~ # gpart show -l ada0
=>       34  976773101  ada0  GPT  (466G)
         34       2014        - free -  (1.0M)
       2048   96065544     1  Ventoy  (46G)
   96067592      65536     2  VTOYEFI  (32M)
   96133128     114688     3  mfsBSD  (56M)
   96247816   10485760     4  FreeBSD  (5.0G)
  106733576    4194304     5  (null)  (2.0G)
  110927880  251658240     6  FreeBSD-14.0  (120G)
  362586120       2040        - free -  (1.0M)
  362588160   41943040     7  OpenSuse  (20G)
  404531200   41943040     8  OpenWrt  (20G)
  446474240   20971520     9  (null)  (10G)
  467445760    4194304    10  (null)  (2.0G)
  471640064   20971520    11  Debian  (10G)
  492611584    2097152    12  Clonezilla  (1.0G)
  494708736    4194304    13  (null)  (2.0G)
  498903040   20971520    14  OpenSuse  (10G)
  519874560   20971520    15  (null)  (10G)
  540846080   41943040    16  NanoBSD  (20G)
  582789120   41943040    17  FreeBSD-UPDSRV  (20G)
  624732160   20971520    18  FreeBSD-test  (10G)
  645703680   20971520    19  FreeBSD-pristine  (10G)
  666675200  251658240    20  FreeBSD-14.0  (120G)
  918333440   58439695    21  (null)  (28G)

I would recommend installing the mfsBSD ISO in partition one since you can use it to boot FreeBSD and subsequently create and install FreeBSD in the spare space you have left.

If you have a Linux system around I'd suggest running the text mode Ventoy installation -

 
Back
Top