Subject: How to write NetBSD boot blocks to DOS disk?
To: None <port-i386@NetBSD.ORG>
From: Michael L. VanLoon -- HeadCandy.com <michaelv@HeadCandy.com>
List: port-i386
Date: 03/28/1996 03:07:20
I have a 540MB EIDE drive with NetBSD and MS-DOS partitions peacefully
coexisting.  I have a 100MB DOS/Win95 partition (for maintenance
purposes, like configuring "software configurable" cards and such),
and the rest is a backup root/usr alternate boot system (backup
because it's normally "turned off" in the BIOS, and the machine boots
straight up into my NetBSD SCSI drives).

Like I said, I have the NetBSD and MS-DOS paritions working on the
same disk.  But, I can't boot the NetBSD parition off the EIDE drive.
How do I write the NetBSD boot blocks?  When I try "disklable -B ..."
it trashes the MS-DOS partition data.  I know others have made this
work.  How did you do it?

For your entertainment, here is my disklabel proto file:

# /dev/rwd0d:
type: ST506
disk: WDC2540
label: WDC AC2540F     
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 1048
total sectors: 1056384
rpm: 4500
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

7 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    65520   205632    4.2BSD     1024  8192    16   # / (root)
  b:    97776   271152      swap        0     0         # swap
  c:   850752   205632    unused        0     0         # (Cyl.  204 - 1047)
  d:  1056384        0    unused        0     0         # (Cyl.    0 - 1047)
  e:   687456   368928    4.2BSD     2048 16384    16   # /usr
  g:   205569       63     MSDOS                        # (Cyl.    0*- 203*)


-----------------------------------------------------------------------------
  Michael L. VanLoon                                 michaelv@HeadCandy.com
       --<  Free your mind and your machine -- NetBSD free un*x  >--
     NetBSD working ports: 386+PC, Mac 68k, Amiga, HP300, Sun3, Sun4,
                           DEC PMAX (MIPS), DEC Alpha, PC532
     NetBSD ports in progress: VAX, Atari 68k, others...
-----------------------------------------------------------------------------