Subject: Re: how to make boot menu work
To: <>
From: None <mcmahill@mtl.mit.edu>
List: port-i386
Date: 08/03/2002 22:22:59
On Sat, 3 Aug 2002, Frederick Bruckman wrote:

> On Sat, 3 Aug 2002 mcmahill@mtl.mit.edu wrote:
> 
> > ok, stupid question here...  I have netbsd running on my wifes i386.  I
> > have a boot selector menu installed (the one I got during the netbsd
> > install) so when the machine boots, it says something like
> > press f1 for winblows and f2 for netbsd.  If I press the f2 one, it just
> > sits and sits.  If I don't press anything it times out and boots winme.
> > So far I've just been booting off a CD-ROM and then
> >   boot wd1a:netbsd
> > to get into netbsd, but I'm finally tired of that.  So whats the right
> > thing to run to fix this?
> 
> 	/usr/mdec/installboot /usr/mdec/biosboot.sym /dev/rwd0a
> 
> and maybe, for good measure, run
> 
> 	fdisk -B wd0
> 
> to update the bootselector that you evidently already have.
> 
> Frederick
> 

a few corrections.  its wd0 I'm trying to boot from.  Its F1 for windows
and F3 for netbsd.  When I press F3, I get a '3' and then it hangs.  The
sources say this means a magic number check failed.  

This is what fdisk and disklabel say.

# fdisk wd0
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)

BIOS disk geometry:
cylinders: 1024 heads: 255 sectors/track: 63 (16065 sectors/cylinder)

Partition table:
0: sysid 12 (Primary DOS with 32 bit FAT - LBA)
    start 63, size 33559722 (16386 MB), flag 0x80
        beg: cylinder    0, head   1, sector  1
        end: cylinder 1023, head 254, sector 63
1: sysid 15 (Ext. partition - LBA)
    start 33559785, size 28672560 (14000 MB), flag 0x0
        beg: cylinder 1023, head 254, sector 63
        end: cylinder 1023, head 254, sector 63
2: sysid 169 (NetBSD)
    start 62232345, size 15933015 (7779 MB), flag 0x0
        beg: cylinder 1023, head 254, sector 63
        end: cylinder 1023, head 254, sector 63
3: <UNUSED>

# disklabel wd0

# /dev/rwd0d:
type: unknown
disk: mydisk
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 78165360
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size   offset     fstype   [fsize bsize cpg/sgs]
  a: 15410304 62755056     4.2BSD     1024  8192    16   # (Cyl. 62257 -
77544)
  b:   522711 62232345       swap                        # (Cyl. 61738*-
62256)
  c: 15933015 62232345     unused        0     0         # (Cyl. 61738*-
77544)
  d: 78165360        0     unused        0     0         # (Cyl.    0 -
77544)
  e: 33559722       63      MSDOS                        # (Cyl.    0*-
33293*)
  f: 28672560 33559785      MSDOS                        # (Cyl. 33293*-
61738*)