Subject: Re: install/19204: NetBSD/i386 does not support extended partition for the disklabel
To: Frank van der Linden <fvdl@wasabisystems.com>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 12/02/2002 23:50:47
On Sat, Nov 30, 2002 at 12:57:51PM +0000, David Laight wrote:
> > Actually, it should now. If you use the .code16 directive, it should
> > do the right thing. I've been meaning to convert the code, but
> > didn't get around to it so far.
> 
> I might change the versions I have.

Done...

If anyone is interested go to www.l8s.co.uk then netbsd/mbr
	mbr.S			for sbin/fdisk/mbr/mbr.s
	Makefile		for sbin/fdisk/mbr.Makefile
	Makefile.mbr_bootsel	for sbin/fdisk/mbr_bootsel/Makefile
(I've used Makefile magic to get a shared source file.)

That version of the mbr_bootsel code does all the checks
for BIOS LBA support [1].  The only difference between it and the
non-mbr code are the terse error messages.  Even they are
rather less terse than they used to be!

On error it outputs "Error x" and issues the menu.

I have 1/2 a plan to do an LBA only version that will look
in the extended partition.
However it would be easier with different key presses.
(eg first char of menu name selects partition)

	David

[1] The LBA support check can be compiled out, the sector number
check is probably good enough.  This might be needed as there is
only 1 free byte, code reordering might save 4 bytes - but I can't
find an appropriate order...

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