Subject: Re: BootLoader
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 04/05/2003 21:08:50
> > > "No Operating System" would mean that the bootcode magic number on the
> > > NetBSD's partition is wrong. Did you try reinstalling the boot code
> > > (installboot ....) ? Maybe from a 1.5 floppy ?
> > 
> > I can boot from a floppy (break out of the boot and go to hd0:/netbsd) so
> > (if I'm thinking correctly) the system is pretty close.  The only thing
> > that seems amiss is the bootcode magic on the partition, which doesn't
> > really make any sense, since I've tried a dozen combinations of
> > installboot, fdisk, and everything in /usr/mdec.  The NetBSD partition is
> > active, and the partitions and BIOS geometry all seem to be correct.

A couple of possibilities:

1) The 'root' filesystem must be at the beginning of the NetBSD (bios)
   partition.
2) fdisk may have used the wrong disk geometry - the CHS values must
   match those for the BIOS interface, not those of the native disk.
3) The NetBSD partition could be above the CHS limit and your BIOS
   doesn't support LBA reads
4) User error - /usr/mdec/installboot hasn't written the loader to
   the correct place - the first sector of hd0a should end 55 aa.
   (eg # hexdump -C -n512 /dev/rwd0a)

	David

-- 
David Laight: david@l8s.co.uk