Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2014 15:22:58 -0700
From:      Frank Mayhar <fmayhar@gmail.com>
To:        Wojciech Puchar <wojtek@puchar.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: "Invalid partition table" on 10-stable.
Message-ID:  <1411078978.90616.21.camel@jill.exit.com>
In-Reply-To: <alpine.BSF.2.00.1409190001590.873@laptop>
References:  <1411013471.25791.52.camel@jill.exit.com> <541AB164.80707@beastielabs.net> <loom.20140918T225950-776@post.gmane.org> <alpine.BSF.2.00.1409190001590.873@laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2014-09-19 at 00:03 +0200, Wojciech Puchar wrote:
> >>
> >> /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@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.

Well, my pmbr isn't really an MBR, it's just the fake one to make things
"work right" as I understand it.  In fact, I don't really understand it,
or why it's necessary, but it's pretty clear that something's funky
here.

I'm planning to avoid disk/bsdlabel entirely in favor of gpart, GPT and
zfs.  (I'm dead set on using ZFS; I don't trust UFS nearly as much as I
used to.)
-- 
Frank Mayhar
frank@exit.com




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