Solved No /boot directory

ls /boot
Code:
/boot

ll /boot
Code:
lrwxr-xr-x    1    root    wheel    13 Nov     1    05:37 /boot@ -> bootpool/boot

I am running FreeBSD 12.1 in VirtualBox 6.1.0 without EFI.
 
Code:
NAME                 USED  AVAIL  REFER  MOUNTPOINT
zroot               3.90G  5.31G    88K  /zroot
zroot/ROOT          1.32G  5.31G    88K  none
zroot/ROOT/default  1.32G  5.31G  1.32G  /
zroot/tmp             88K  5.31G    88K  /tmp
zroot/usr           2.57G  5.31G    88K  /usr
zroot/usr/home       128K  5.31G   128K  /usr/home
zroot/usr/ports     1.88G  5.31G  1.88G  /usr/ports
zroot/usr/src        704M  5.31G   704M  /usr/src
zroot/var            580K  5.31G    88K  /var
zroot/var/audit       88K  5.31G    88K  /var/audit
zroot/var/crash       88K  5.31G    88K  /var/crash
zroot/var/log        140K  5.31G   140K  /var/log
zroot/var/mail        88K  5.31G    88K  /var/mail
zroot/var/tmp         88K  5.31G    88K  /var/tmp
 
Something's missing and I'm just wondering where it is. Can you post the output from gpart show?
 
Code:
=>      63  33554369  ada0  MBR  (16G)
        63         1        - free -  (512B)
        64  33554368     1  freebsd  [active]  (16G)

=>       0  33554368  ada0s1  BSD  (16G)
         0   4194304       1  freebsd-zfs  (2.0G)
   4194304   8388608       2  freebsd-swap  (4.0G)
  12582912  20971456       4  freebsd-zfs  (10G)
 
That 2GB partition is where the bootpool probably is. I'm wondering why it doesn't show up with a zfs list. What does zfs import show?
 
Code:
   pool: bootpool
     id: 11334815970963524383
  state: ONLINE
 action: The pool can be imported using its name or numeric identifier.
 config:

        bootpool    ONLINE
          ada0s1a   ONLINE
 
Ah, there it is. Run zpool import bootpool, then zfs mount -a. That should bring it back. No idea why it's been exported though.
 
Back
Top