Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2014 15:19:57 -0500
From:      Richard Todd <rmtodd@servalan.servalan.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: "Invalid partition table" on 10-stable.
Message-ID:  <x7bnqc3clu.fsf@ichotolot.servalan.com>
In-Reply-To: <541AB164.80707@beastielabs.net> (Hans Ottevanger's message of "Thu, 18 Sep 2014 12:18:12 %2B0200")
References:  <1411013471.25791.52.camel@jill.exit.com> <541AB164.80707@beastielabs.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hans Ottevanger <hans@beastielabs.net> writes:
> Hi,
>
> I have a similar situation with my oldish Q6600 based systems using an
> INTEL DP965LT main-board. After a fresh installation of FreeBSD 10 or
> higher (using a GPT scheme) I consistently get the message:
>
> No bootable device -- insert boot disk and press any key
>
> when rebooting the new installation for the first time.
>
> In my situation I can get the installation working by booting single
> user from an older FreeBSD install CD (9.2R in my case) and reinstall
> the MBR as follows:
>
> /sbin/gpart bootcode -b /boot/pmbr ada0
>
> Probably gpart changed the way it installs the MBR, but I think it is
> very board (or maybe BIOS) specific: other systems do not have the
> issue.

I have a DP965LT system, and yes the BIOS is a bit finicky about
the contents of the MBR; I had issues before (pre-GPT days in FreeBSD)
with it not wanting to boot which turned out to be it insisting there
had to be one and only one "active" partition in the MBR.  It's
currently running with a GPT PMBR boot record, set up sometime when it
was running 9.x I think.  This is what fdisk shows for the MBR on that 
machine:
3 blo-rakane /usr/home/rmtodd[ 3:15PM] Z# fdisk /dev/ada0
******* Working on device /dev/ada0 *******
parameters extracted from in-core disklabel are:
cylinders=484521 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=484521 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 238 (0xee),(EFI GPT)
    start 1, size 488397167 (238475 Meg), flag 80 (active)
        beg: cyl 0/ head 0/ sector 2;
        end: cyl 1023/ head 255/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

Note the "active" flag present on the GPT fake-MBR-partition.





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