FreeBSD 10.0-RC3 Now Available

Thomas Hoffmann trh411 at gmail.com
Fri Dec 27 17:28:26 UTC 2013


On Fri, Dec 27, 2013 at 12:15 PM, Scot Hetzel <swhetzel at gmail.com> wrote:

> The correct way to install/update ZFS Boot code on an MBR disk is:
>
> Install boot Manager (required on first install)
>
> # gpart bootcode -b /boot/boot0 ad0
>
> Note: /boot/mbr could also be used if you are not multibooting
>
> Install ZFS boot1 stage
>
> # sysctl kern.geom.debugflags=0x10
> # dd if=/boot/zfsboot of=/dev/ada0s1 count=1
>
> or
>
> # dd if=/boot/zfsboot of=/tmp/zfsboot1 count=1
> # gpart bootcode -b /tmp/zfsboot1 /dev/ada0s1
>
> Install ZFS boot2 stage
> # dd if=/boot/zfsboot of=/dev/ada0s1a skip=1 seek=1024


This ties everything together nicely for me, especially the part about the
first bootcode install, which had me really confused. Thanks.


More information about the freebsd-current mailing list