Subject: Re: BootLoader
To: David Burgess <burgess@cynjut.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 04/06/2003 16:09:37
On Sat, Apr 05, 2003 at 10:16:52PM -0600, David Burgess wrote:
> >
> > 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)
>
> I can reproduce this effect at will:
>
> - Install NetBSD from floppies onto a new hard drive. It's important to
> keep version compatability because of what happens next.
>
> - Install the old hard drive onto the the secondary controller. Mount it
> to /mnt. The system boots just fine.
>
> - cd to /mnt. Then do 'find . | cpio -pdmuv /'. Reboot. No Joy.
>
> Maybe that helps?
OK, so you overwrote /boot. This is the problem.
Either do
find . \! -path ./boot | cpio -pdmuv /
or rerun installboot after the copy.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 24 ans d'experience feront toujours la difference
--