Subject: Re: Boot Problems (fdisk / disklabel)
To: Michael Core <520079546242-0001@t-online.de>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 03/24/2002 21:50:21
On Sun, Mar 24, 2002 at 11:15:48PM +0100, Michael Core wrote:
> Hi,
> 
> I'm using 1.5ZA and I've installed a new hard drive (Quantum Fireball Ict
> 10,2 GB with U-DMA). As the other drive has only 1,2 GB and is rather
> slow, I'd normally remove it. The problem is I cannot boot from the new
> drive. I created mount points for / and /usr, copied all necessary file
> and used fdisk to install the boot loader. When I boot my PC I see "F4:
> NetBSD", hit enter and nothing happends but a "3" appears.

Ok, error '3' means "sector 0 of the partition didn't contain 0xaa55
as its last 2 bytes".

At a guess you've forgotten to install the bootloader into the
partition boot sectors (the first and third onward of the partition,
in your case sectors 63 and 65+).

RTFM for installboot....

> # disklabel wd0
> 
> 8 partitions:
> #  size offset  fstype  [fsize bsize cpg/sgs]
> a:   512000 63 4.2BSD 1024 8192 16 # (Cyl. 0*- 507*)
> b: 18983853 1060227  4.2BSD 1024 8192 16 # (Cyl. 1051*- 19884)
> c: 20044017 63 unused  0 0  # (Cyl. 0*- 19884)
> d: 20044080 0 unused  0 0  # (Cyl.  0 - 19884)
> 
> (removed some spaces to avoid a line break)
> 
> # fdisk -B wd0
> NetBSD disklabel disk geometry:
> cylinders: 19885 heads: 16 sectors/track: 63 (1008 sectors/cylinder)
> 
> BIOS disk geometry:
> cylinders: 1023 heads: 255 sectors/track: 63 (16065 sectors/cylinder)
> 
> Partition table:
> 0: <UNUSED>
> 1: <UNUSED>
> 2: <UNUSED>
> 3: sysid 169 (NetBSD)
>     start 63, size 500000 (244 MB), flag 0x80
>         beg: cylinder    0, head   0, sector 63
>         end: cylinder 1023, head  15, sector 63
> The bootselector is installed and active.
> 
> I'm not sure what "beg" is correct whether 0/0/63, 0/1/0 or 0/1/1.

The correct value is 0/1/1 - ie the first sector (they are numered
from 1 to confuse things) on the second track of the disk.


	David

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