ZFS ZFS: inconsistent nvlist contents

...and more alarming messages:

Can't find /boot/zfsloader
Can't find /boot/loader
Can't find /boot/kernel/kernel

Using Live CD...

Code:
root@:~ # gpart show ada0
=>        40  3907029088  ada0  GPT  (1.8T)
          40      532480     1  efi  (260M)
      532520        1024     2  freebsd-boot  (512K)
      533544         984        - free -  (492K)
      534528   134217728     3  freebsd-swap  (64G)
   134752256  3772276736     4  freebsd-zfs  (1.8T)
  3907028992         136        - free -  (68K)

root@:~ # gpart show ada2
=>        40  3907029088  ada2  GPT  (1.8T)
          40      532480     1  efi  (260M)
      532520        1024     2  freebsd-boot  (512K)
      533544         984        - free -  (492K)
      534528   134217728     3  freebsd-swap  (64G)
   134752256  3772276736     4  freebsd-zfs  (1.8T)
  3907028992         136        - free -  (68K)

I thought boot code was damaged or missing, so I tried:

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada2

Rebooted, but still getting "inconsistent nvlist contents" error.

How can I fix this?
 
Thank you for the quick reply Emrion. Followed your suggestions and to my great relief, it booted!
 
Followed your suggestions and to my great relief, it booted!
Good. Now go fix those efi partitions, because you destroyed those. If you happen to switch to UEFI booting the system will fail to boot entirely.

Always pay attention when updating the bootcode, gptboot(8) or gptzfsboot(8) need to be written to the freebsd-boot partition, this may or may not be the first partition.
 
Back
Top