Upgrading Boot Loader

Volodymyr Kostyrko c.kworr at gmail.com
Mon Aug 2 19:17:39 UTC 2010

02.08.2010 22:11, Tim Gustafson wrote:
>> Nope. Read
>> http://www.mail-archive.com/freebsd-stable@freebsd.org/msg103917.html
>> You need the dd sequence. And you need to do that on exported pool.
> So, just to be clear, I need to boot off a USB key (which will then allow me to write to ad8 and ad10, my two boot zpool devices), and then:
> dd if=/boot/zfsboot of=/dev/ad8 bs=512 count=1
> dd if=/boot/zfsboot of=/dev/ad10 bs=512 count=1
> dd if=/boot/zfsboot of=/dev/ad8 bs=512 skip=1 seek=1024
> dd if=/boot/zfsboot of=/dev/ad10 bs=512 skip=1 seek=1024
> And that assumes that I copy the newly-compiled zfsboot to the USB key after creating it, correct?


PS: I've just recently changed my mind and moved from dedicated vdevs to 
gpart. This gives possibility of:
  1. Having raw swap partition suitable for swapping/dumping.
  2. Updating bootcode online without loosing uptime.

Just in expense of some kilobytes of disk space.

Sphinx of black quartz judge my vow.

More information about the freebsd-questions mailing list