Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2004 17:30:12 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Doug Poland <doug@polands.org>
Cc:        questions@freebsd.org
Subject:   Re: Invalid partition table after sysinstall modifications
Message-ID:  <20040524172450.U42235@wonkity.com>
In-Reply-To: <2028.172.16.1.16.1085440453.squirrel@email.polands.org>
References:  <40AFDA14.8030401@polands.org> <20040522200257.D37289@wonkity.com> <2028.172.16.1.16.1085440453.squirrel@email.polands.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 24 May 2004, Doug Poland wrote:

> Warren Block said:
> >>
> >>    "Invalid partition table"
> >
> > Hmm.  It looks like that error comes from the plain mbr code
> > (/boot/mbr), not the boot-selector loader (/boot/boot0).  The plain mbr
> > only wants one partition (slice) to be active.
> >
> > See what fdisk has to say about your partitions.
> >
> djp@FreeSBIE:~/djp# fdisk /dev/ad0
> ******* Working on device /dev/ad0 *******
> parameters extracted from in-core disklabel are:
> cylinders=119150 heads=16 sectors/track=63 (1008 blks/cyl)
>
> Figures below won't work with BIOS for partitions not in cyl 1
> parameters to be used for BIOS calculations are:
> cylinders=119150 heads=16 sectors/track=63 (1008 blks/cyl)
>
> Media sector size is 512
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 1 is:
> sysid 22 (0x16),(OS/2 BM: hidden DOS with 16-bit FAT (>= 32MB))
>     start 63, size 4096512 (2000 Meg), flag 0
>         beg: cyl 0/ head 1/ sector 1;
>         end: cyl 254/ head 254/ sector 63
> The data for partition 2 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
>     start 4096575, size 20964825 (10236 Meg), flag 80 (active)
>         beg: cyl 255/ head 0/ sector 1;
>         end: cyl 1023/ head 254/ sector 63
> The data for partition 3 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
>     start 25061400, size 95040540 (46406 Meg), flag 80 (active)
>         beg: cyl 1023/ head 255/ sector 63;
>         end: cyl 1023/ head 254/ sector 63
> The data for partition 4 is:
> <UNUSED>
>
> I'm not sure what we're looking for here.

You have two active partitions, 2 and 3.  The stock MBR doesn't like
having more than one active (bootable), and gives the "Invalid partition
table" message.  So either clear the active flag on one, or use boot0cfg
to install the multi-boot loader.  (At least I think this is what is
going on, based on the source for mbr.)

-Warren Block * Rapid City, South Dakota USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040524172450.U42235>