I installed FreeBSD 11 with encrypted ZFS from the official live CD. After using the system fine for some days, I changed something in /boot/loader.conf then can not boot. I searched and the way to recover is to boot from live CD and type:
it worked, and here is what ZFS look like
However, I can not find /boot/loader.conf ! The following directories are empty (other than other ZFS mount points):
I believe I also tried to
other ZFS partitions all appear fine, for example:
I have hence reinstalled system, however it is scary to know we have to re-install the system any time if messing up something in /boot/loader.conf .
Where can I find /boot/loader.conf when mounting from live CD?
Code:
# cd /tmp/
# mkdir mounted
# geli attach /dev/ada0p3
# zpool import -f -R /tmp/mounted zroot
Code:
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
zroot 5.64G 223G 96K /tmp/mounted/zroot
zroot/ROOT 4.05G 223G 96K none
zroot/ROOT/default 4.05G 223G 4.05G /tmp/mounted
zroot/tmp 124K 223G 124K /tmp/mounted/tmp
zroot/usr 1.58G 223G 96K /tmp/mounted/usr
zroot/usr/home 373M 223G 373M /tmp/mounted/usr/home
zroot/usr/ports 642M 223G 642M /tmp/mounted/usr/ports
zroot/usr/src 608M 223G 608M /tmp/mounted/usr/src
zroot/var 1020K 223G 96K /tmp/mounted/var
zroot/var/audit 96K 223G 96K /tmp/mounted/var/audit
zroot/var/crash 96K 223G 96K /tmp/mounted/var/crash
zroot/var/log 512K 223G 512K /tmp/mounted/var/log
zroot/var/mail 120K 223G 120K /tmp/mounted/var/mail
zroot/var/tmp 100K 223G 100K /tmp/mounted/var/tmp
Code:
# ls /tmp/mounted/
tmp usr var zroot
# ls /tmp/mounted/zroot/
#
zfs mount zroot/ROOT
somewhere else but also found nothing there.other ZFS partitions all appear fine, for example:
Code:
# ls /tmp/mounted/usr/ports/
.arcconfig
.gitattributes
.gitignore
CHANGES
...
Where can I find /boot/loader.conf when mounting from live CD?