Hello my new friends, it’s me again, I am now on day 3 of FreeBSD and I have almost set up all the important bits.
I set up a RAID1 for my 2 disks that hold my home directory per the handbook, and then set up a geli partition on that mirror device as described in the handbook, and then I put things in the rc.conf like so
and in the fstab like so
But it does not work. It can’t mount the device and then puts me in single user mode, even if I specify noauto to save me some trouble.
For some mysterious reason, the geli script does also not run at boot. I boot with a commented-out fstab entry so that works, but I still have the script enabled. But there is no asking for any passwords. If I start the geli script manually after logging in however, it works fine.
If I, after booting, remove the # in front of the fstab entry and just say mount /usr/home, this also works fine. So I know my entry is okay, I know the script knows what drive it’s supposed to do, and everyone is simply not doing their job!
I suspect something with the order of things is just going wrong here and sure, I could just write my own script to do it, but I don’t particularly want to. So how do I configure this correctly in the way that it’s intended to be done?
I set up a RAID1 for my 2 disks that hold my home directory per the handbook, and then set up a geli partition on that mirror device as described in the handbook, and then I put things in the rc.conf like so
Code:
# Kernelmodule
kld_list="amdgpu geom_eli geom_mirror"
# Decrypt mirror/home.eli
geli_enable="YES"
geli_devices="mirror/home.eli"
Code:
/dev/mirror/home.eli /usr/home ufs rw 0 1
For some mysterious reason, the geli script does also not run at boot. I boot with a commented-out fstab entry so that works, but I still have the script enabled. But there is no asking for any passwords. If I start the geli script manually after logging in however, it works fine.
If I, after booting, remove the # in front of the fstab entry and just say mount /usr/home, this also works fine. So I know my entry is okay, I know the script knows what drive it’s supposed to do, and everyone is simply not doing their job!
I suspect something with the order of things is just going wrong here and sure, I could just write my own script to do it, but I don’t particularly want to. So how do I configure this correctly in the way that it’s intended to be done?