From owner-freebsd-current@FreeBSD.ORG Sat Jul 11 23:07:58 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 EFD2A106566C for ; Sat, 11 Jul 2009 23:07:58 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by mx1.freebsd.org (Postfix) with ESMTP id D32E98FC1C for ; Sat, 11 Jul 2009 23:07:58 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed; delsp=yes Received: from macbook-pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp023.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KMN00KZ349A7700@asmtp023.mac.com> for freebsd-current@freebsd.org; Sat, 11 Jul 2009 16:07:58 -0700 (PDT) From: Marcel Moolenaar In-reply-to: Date: Sat, 11 Jul 2009 16:07:57 -0700 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> To: rea-fbsd@codelabs.ru X-Mailer: Apple Mail (2.1070) Cc: Aragon Gouveia , 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 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 23:07:59 -0000 On Jul 11, 2009, at 3:22 PM, Eygene Ryabinkin wrote: > 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. >> >> I've seen the reported problem on my BETA1 systems too. I've also >> noticed this in my bootup dmesg: >> >> GEOM: ad4s2: geometry does not match label (255h,63s != 16h,63s). > > Different and mostly harmful (as per UPDATING, 20090320) problem. I think you meant to say harmless and not harmful. >> >> Is it possible sysinstall is a culprit in all this? > > No, the problem is that bsdlabel is missing the so-called "MBR offset" > from 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). Actually, yes. This is a problem in sysinstall. The "MBR offset" you're talking about does not relate to the geometry of a device. It relates to offsets in the disk label. The warning Aragon talks about is the result of having the underlying disk report 16 heads and 63 sectors/track, whereas the BSD disklabel itself contain values of 255 for heads and 63 for sectors/track. This means that the BSD disklabel was constructed with values that do not correspond to what the disk reports. This is where sysinstall comes into the picture. Note that it's also possible that the underlying disk changes geometry. If I install over USB onto a SATA disk (using a USB to SATA converter) and then later install the SATA disk in a machine and connected to a SATA controller, the geometry may change. In the first case the disk is accessed as daX and in the second case the disk is accessed as adX. SCSI/CAM and ATA do not agree on default geometries AFAICT... -- Marcel Moolenaar xcllnt@mac.com