Subject: bootblocks
To: None <current-users@netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: current-users
Date: 04/06/1999 12:24:09
What is the recommended way to add bootblocks to an existing disk.

I cloned a 6-gig disk via dd of the rwd0d partition, and moved it over
to the victim machine.  This morning's boot{1,2}.fs can correctly see
the cloned netbsd partitions, but os-bs can't boot it.  I figured I
could run the install disk, cd to /usr/mdec and do an "./installboot
-v biosboot.sym /dev/rwd0a".  Well, this didn't do the trick.  What
*should* I be doing to install the bootstrap code?  

NB: the disk I cloned had a heads=240 (instead of heads=255).  I don't
know if that complicates matters.

    ******* Working on device /dev/rwd0d *******
    Warning: BIOS sector numbering starts with sector 1
    parameters extracted from in-core disklabel are:
    cylinders=13424 heads=15 sectors/track=63 (945 sectors/cylinder)

    parameters to be used for BIOS calculations are:
    cylinders=839 heads=240 sectors/track=63 (15120 sectors/cylinder)

    Information from DOS bootblock is:
    0: sysid 11 (Primary DOS with 32 bit FAT)
	start 63, size 6199137 (3026 MB), flag 0x0
	    beg: cylinder    0, head   1, sector  1
	    end: cylinder  409, head 239, sector 63
    1: sysid 169 (NetBSD)
	start 6199200, size 6199200 (3026 MB), flag 0x80
	    beg: cylinder  410, head   0, sector  1
	    end: cylinder  819, head 239, sector 63
    2: <UNUSED>
    3: sysid 160 (IBM Thinkpad hibernation)
	start 12398400, size 272160 (132 MB), flag 0x0
	    beg: cylinder  820, head   0, sector  1
	    end: cylinder  837, head 239, sector 63

-wolfgang
-- 
       Wolfgang Rupprecht <wolfgang+gnus@dailyplanet.wsrcc.com>
		    http://www.wsrcc.com/wolfgang/
DGPS signals via the Internet  http://www.wsrcc.com/wolfgang/gps/dgps-ip.html