From owner-freebsd-current@FreeBSD.ORG Sat Jul 11 22:22:54 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85330106566C for ; Sat, 11 Jul 2009 22:22:54 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 326EE8FC16 for ; Sat, 11 Jul 2009 22:22:54 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:Content-Transfer-Encoding:In-Reply-To:Sender; b=LGKphKejqjNg7jke/5zkM3AKkj6hUON8l1hf3fUtSVbsmhdzasG6HaxjpjHW3SM8i2TcrCi9/5vy3kO1pYWYdQWBgKVD4uSUDeedUM8J/i68RS0yBHvSXleXlhXbaJRQgYl7o1OanhBvHYxxogITMN1bjxTv3A4HSgTFlpQC3G0=; Received: from amnesiac.at.no.dns (ppp85-141-163-216.pppoe.mtu-net.ru [85.141.163.216]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1MPky5-000GS8-4c; Sun, 12 Jul 2009 02:22:53 +0400 Date: Sun, 12 Jul 2009 02:22:52 +0400 From: Eygene Ryabinkin To: Aragon Gouveia Message-ID: References: <20090710042106.GC31950@rwpc12.mby.riverwillow.net.au> <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> <4A590E7F.8000208@phat.za.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <4A590E7F.8000208@phat.za.net> Sender: rea-fbsd@codelabs.ru Cc: Marcel Moolenaar , John Marshall , freebsd-current@freebsd.org Subject: Re: 8.0-BETA1 bsdlabel broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2009 22:22:54 -0000 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 {_.-``-' {_/ #