Subject: Re: How to make hdd bootable?
To: Zbigniew Baniewski <zb@ispid.com.pl>
From: Geert Hendrickx <ghen@telenet.be>
List: netbsd-users
Date: 05/11/2007 15:46:20
On Fri, May 11, 2007 at 03:36:16PM +0200, Zbigniew Baniewski wrote:
> I'm trying to copy an entire NetBSD system to another disk. All seems to be
> OK, with one "little" exception: it's surprisingly difficult to make it
> bootable.
> 
> On the target disk, there was DOS/Linux installation before, with LILO as
> selector. After repartitioning and when new fs has been created, at the boot
> time I saw still LILO prompt. Then I tried to fix it using fdisk - but
> despite several tries using various fdisk options, all I've got now is
> "Non-system or disk error" message.
> 
> Fdisk sees the partitions:
> 
> 0 - it's the only one
> 1 - unused
> 2 - unused
> 3 - unused
> 
> Disklabel shows:
> 
> c - BSD4.2
> d - swap
> e - it does detect kind of copy(?) of the c.
> 
> I made several tries to install boot code to MBR, like f.e.:
> 
> fdisk -a -c location/of/mbr/code -i /dev/wd0
> 
> ...with no desired effect.



Can you show us the exact output of "fdisk wd0" and "disklabel wd0" please?

Unless those are very funky, man installboot(8) should be able get you going.

	Geert