Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2013 23:14:20 -0400 (EDT)
From:      Garrett Wollman <wollman@hergotha.csail.mit.edu>
To:        jdc@koitsu.org
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Reinstalling boot blocks on a ZFS-only system
Message-ID:  <201305130314.r4D3EKaJ016781@hergotha.csail.mit.edu>
In-Reply-To: <20130512205837.GA69605@icarus.home.lan>
References:  <A6940C2F-17B4-4ECF-85B6-BA8CB335486E@distal.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20130512205837.GA69605@icarus.home.lan>, jdc@koitsu.org writes:

>You may also need to set kern.geom.debugflags=0x10 to inhibit GEOM's
>"safety measure" / to permit writing to LBA 0; see GEOM(4) and search
>for the word "foot".

If you have set up your partitioning properly (read: following the
clearly recommended best practice on the wiki), there should never,
ever be any reason to do this.  (That is why it's called a DEBUG
flag.)  The necessary and sufficient invocation is:

# gpart bootcode -b /boot/pmbr -p /boot/gptzfsloader -i 1 [a]daX

I have no idea how this works with MBR partitioning, but I would make
one suggestion in that regard: DON'T.  Whatever makes you think you
want to do that, think harder and find another way.

-GAWollman




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305130314.r4D3EKaJ016781>