geli keyfile not loading at boot

Michael W. Lucas mwlucas at
Wed Aug 20 15:06:11 UTC 2014


I have a default FreeBSD 10.0/amd64 install.

I'm trying to make a GELI device attach at boot. I initialized the
partition with -b, and am prompted at boot. When I try to enter the
passphrase, I keep getting told that it's incorrect. Once I get into
multi-user mode and manually attach the device, it attaches just fine.

It seems that GELI isn't finding my key file.

My initial root partition is da0p2. The key is /boot/da1p1.key. The
GELI partition is da1p1. Here's my loader.conf:


Any suggestions? What am I doing wrong here?

(Yes, I could just use the installer to do an encrypted install, but
then I wouldn't be able to write about this in a book...)


Michael W. Lucas  -  mwlucas at, Twitter @mwlauthor,

More information about the freebsd-questions mailing list