Subject: Re: big disk not bootable
To: None <netbsd-help@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 03/12/2002 17:46:43
On Tue, Mar 12, 2002 at 03:50:14PM +0100, Wolfgang Solfrank wrote:
> Hi,
> 
> > fdisk says:
> > # fdisk sd0
> > NetBSD disklabel disk geometry:
> > cylinders: 57272 heads: 32 sectors/track: 64 (2048 sectors/cylinder)
> > 
> > BIOS disk geometry:
> > cylinders: 1024 heads: 255 sectors/track: 63 (16065 sectors/cylinder)
> > 
> > Partition table:
> > 0: <UNUSED>
> > 1: <UNUSED>
> > 2: <UNUSED>
> > 3: sysid 169 (NetBSD)
> >     start 64, size 117292992 (57271 MB), flag 0x80
> >         beg: cylinder    0, head   1, sector  1
> >         end: cylinder  951, head  31, sector  0

The pbr code is in sector 64, but it will be read using a
CHS read - returning sector 63.

> > Can I change the geometry while it is live without reinstalling?

Well I guess you have the pbr in sector 64 and the disklabel in
sector 65.

Copy sector 64->63 and 65->64, then fix the partition table
in the mbr.  You might have to do it by hand! But try fdisk
first.

It MIGHT work if you just change the mbr so that the
partition starts in sector 2.

	David

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