Subject: Re: Boot problems after upgrade
To: Oleg Sharoiko <>
From: Jochen Kunz <>
List: port-prep
Date: 04/30/2003 13:05:59
On Wed, Apr 30, 2003 at 02:28:00PM +0400, Oleg Sharoiko wrote:

> cp netbsd /tmp
> cd /tmp
> gzip -c netbsd > netbsd.gz
> /usr/mdec/mkbootimage /usr/mdec/boot_com0 boot.img netbsd.gz
> dd if=boot.img of=/dev/sd0d
> After rebooting I have:
> boot device: <unknown>
> root on sd0a dumps on sd0b
> init: not found
> panic: no init
> syncing disks... done
> dumpsys: TBD
> rebooting...
> What have I missed?
> Any help will be greatly appreciated.
Depending on your partition / disk slice layout you may have overwritten
your root file system with the kernel. => Reinstall system. 

My prefered method is to mahe a PReP boot MBR partition at the beginning
of the disk (2 to 3 MB) and the BSD MBR partition at the rest. Then 
writing the boot-image to /dev/rsd0c, (c == whole disk, d == BSD MBR 
partition of the disk) and reinstall MBR partitioning with fdisk and 
then the disklabel.