Date: Sun, 12 Jul 2009 02:22:52 +0400 From: Eygene Ryabinkin <rea-fbsd@codelabs.ru> To: Aragon Gouveia <aragon@phat.za.net> Cc: Marcel Moolenaar <xcllnt@mac.com>, John Marshall <john.marshall@riverwillow.com.au>, freebsd-current@freebsd.org Subject: Re: 8.0-BETA1 bsdlabel broken? Message-ID: <z%2BonGf9tzlidpdZMJz2tC//fvv8@UL%2BEw68dotyeVWwcX17wEARTb1s> In-Reply-To: <4A590E7F.8000208@phat.za.net> References: <20090710042106.GC31950@rwpc12.mby.riverwillow.net.au> <fX%2BVI6m2svXk4wDqOGQ3HIesgO8@jmKTY7juey8QgiyMw1P6k9Lb4sg> <20090710071023.GB32316@rwpc12.mby.riverwillow.net.au> <20090710112631.GE32316@rwpc12.mby.riverwillow.net.au> <3a142e750907100433y307f9b2bya1dc54953bdf5de2@mail.gmail.com> <0B1F6799-2FAC-4C01-A978-42E247979CAB@mac.com> <1z5niluEh3OBPNSdMbOMyoEwzX4@CWODRlDR5RMqbkBfR0/UzHcfNhE> <267A655F-13A6-4D79-A933-3A78854AC5FD@mac.com> <TiR5kGIN59NiPk3Q5HjMiImYooQ@MbxgtlHN37ICHkxRO9kSrKasfoA> <4A590E7F.8000208@phat.za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Aragon, good day. Sun, Jul 12, 2009 at 12:13:19AM +0200, Aragon Gouveia wrote: > Eygene Ryabinkin wrote: > > Please, try the attached patch -- it should heal bsdlabel and it will > > show/use the proper offsets everywhere. Works fine for me -- offsets > > for 7.x and 8.x are the same. >=20 > I've seen the reported problem on my BETA1 systems too. I've also > noticed this in my bootup dmesg: >=20 > GEOM: ad4s2: geometry does not match label (255h,63s !=3D 16h,63s). Different and mostly harmful (as per UPDATING, 20090320) problem. > These systems were partitioned and installed using BETA1's sysinstall. >=20 > Out of curiosity I repartitioned and reinstalled fresh from a > 7.2-RELEASE CD. No GEOM warning, and bsdlabel didn't complain. bsdlabel is run on the 7.x, I suppose. That's expected that it will be consistent with sysinstall. > I extracted the 8.0-BETA1 kernel from CD and booted that in single user > mode. The GEOM warning above didn't occur, but (7.2's) bsdlabel > complained in the same way. >=20 > Is it possible sysinstall is a culprit in all this? No, the problem is that bsdlabel is missing the so-called "MBR offset" =66rom GEOM, because in 8.x GEOM_PART_* are used and they have no such geom verb (and anyway, 8.x's bsdlabel queries BSD geoms for it, not the PART_BSD ones). You'll need to patch bsdlabel (on 8.x) with the patch I had posted to this thread earlier today (and expanded patch, that should not make a difference for your setup, will be posted a bit later). If you'll happen to test the patch, please, report back. --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?z%2BonGf9tzlidpdZMJz2tC//fvv8>