"Invalid partition table" on 10-stable.

Wojciech Puchar wojtek at puchar.net
Thu Sep 18 22:03:14 UTC 2014


>>
>> /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.
>>
>> Please let me know if this "trick" helps for you.
>
> I did install the pmbr during the initial setup, as well as the bootstrap
> itself.  I do plan to try the "set active partition" trick suggested
> elsewhere.
while it may not solve your problems i prefer to NEVER make MBR partitions 
at all, only bsdlabel.

example:

[root at laptop ~]# bsdlabel ada0
# /dev/ada0:
8 partitions:
#          size     offset    fstype   [fsize bsize bps/cpg]
   a:     249984         16    4.2BSD        0     0     0
   b:    4750000     250000      swap
   c:  117210240          0    unused        0     0     # "raw" part, don't edit
   d:   63332672    5000000    4.2BSD        0     0     0
   h:   48877568   68332672    4.2BSD        0     0     0

simply do

bsdlabel -B disk

to make it bootable.


More information about the freebsd-hackers mailing list