Hello everyone,
I recently reinstalled my Laptop and I am playing around on the installation. My previous install was done following this guide.
However, having to keep this USB around on my lap, having it accidentally detach sometimes or needing to FSCK it, or having to syncronize the "/boot" folder between other backups got annoying quick.
Now I just done a quick and dirty setup to see if it's possible to have dual booting on a laptop with two disks, and have FreeBSD on GELI. This consists of the following:
I am also curious to see how you handle beadm, zroot and encryption. I would love to hear your experiences and how you setup your workstation
Finally, if someone is interested in a setup guide on what I am thinking to do with my setup, I can clean up my instructions and set it up.
I recently reinstalled my Laptop and I am playing around on the installation. My previous install was done following this guide.
However, having to keep this USB around on my lap, having it accidentally detach sometimes or needing to FSCK it, or having to syncronize the "/boot" folder between other backups got annoying quick.
Now I just done a quick and dirty setup to see if it's possible to have dual booting on a laptop with two disks, and have FreeBSD on GELI. This consists of the following:
- Windows on nda0. It created the needed EFI partition
- An unencrypted UFS partition which holds "/boot" and everything inside it. This partition also holds the GELI key.
- Two GELI partitions across nda0 and nda1, which are mirrored to create "zroot"
- UEFI reads the "loader.efi" on "/efi/EFI/FreeBSD/loader.efi", which then searches for a boot partition. This summarizes stage 1
- It finds the unencrypted UFS partition, and loads the boot loader and reads my "/boot/loader.conf" file. This would be stage 2 (and here it would also read the boot environments)
- The bootloader now loads the kernel and sees which devices are available on the computer. This is stage 3
- Thanks to "loader.conf", the kernel asks the user for the password to decrypt the GELI partitions, and import the zroot pool and continue on with "rc". This completes stage 4.
I am also curious to see how you handle beadm, zroot and encryption. I would love to hear your experiences and how you setup your workstation

Finally, if someone is interested in a setup guide on what I am thinking to do with my setup, I can clean up my instructions and set it up.