Subject: Re: mirrored root w/ raidframe - howto install bootblock?
To: Greg Troxel <gdt@ir.bbn.com>
From: Hubert Feyrer <hubert@feyrer.de>
List: port-sparc
Date: 05/14/2006 18:24:03
On Sun, 14 May 2006, Greg Troxel wrote:
> root 2 /usr/mdec #> installboot -nv /dev/rsd0a bootxx /boot
> Bootstrap block table:  118 entries of 8192 bytes available, 8 used: 14560 14576 14592 14608 14624 14640 14656 546
...
> gdt 8 /usr/mdec > fsdb -f /dev/rsd0a
> 0: 7280 7288 7296 7304 7312 7320 7328 273

Indeed, I figured out fsdb's "blks" output would be of any use, too.
I tried taking the first block number fsdb printed, and then doing various 
transformations to get the right offset for 'installboot -B', but could't 
come up with something useful. Simply adding the 64 sector offset didn't 
do it, and various attempts at transforming 8k disk blocks to 512 byte 
sectors and back wasn't all that successful, either.

I'd be willing to document the math in the NetBSD Guide if someone could 
show me the exact steps, but I'm out of ideas for now. :(


  - Hubert