Rescuing a GPT ZFS boot setup

Volodymyr Kostyrko c.kworr at
Thu Sep 19 07:51:40 UTC 2013

19.09.2013 09:36, Andrew Moran wrote:
> 3 years ago I followed  for a FreeBSD 8.1 system (which has since been upgraded to 9.1).    A couple days ago I had massive hardware failure, and wound up having to put the two drives into an entirely new PC system.
> Unfortunately I'm not able to get it to boot off the hard drives.  It doesn't even show the FreeBSD bootloader menu it normally would.  The BIOS sees both drives and it can boot off the 9.1 install/Live CD without any problems.   In the LiveCD, I can see both drives partition tables ("gpart show ..") and I can import  the zpool ("zpool import zroot"), and see all my data.   I just can't seem to boot from it.   I tried rerunning the "gpart bootcode" commands on both drives (no errors), but no effect.
> It's also not beyond the realm of possibility I have some BIOS setting wrong, but the drives do show up in the POST and BIOS setting.
> Does anyone know how I can make my drives bootable again?

Maybe the machine is just too picky about partitioning scheme? Try this 
black magic:

printf '\ny\n\n\n\ny\n\ny\n\n\n\n\ny\n' | fdisk -u ${YourDiskName}

Sphinx of black quartz, judge my vow.

More information about the freebsd-stable mailing list