From owner-freebsd-current@FreeBSD.ORG Mon Jan 5 03:41:01 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A244106564A for ; Mon, 5 Jan 2009 03:41:01 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout017.mac.com (asmtpout017.mac.com [17.148.16.92]) by mx1.freebsd.org (Postfix) with ESMTP id 145398FC16 for ; Mon, 5 Jan 2009 03:41:00 +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 [192.168.1.96] (75-101-29-67.dsl.static.sonic.net [75.101.29.67]) by asmtp017.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KCZ00CRABKB8730@asmtp017.mac.com> for current@freebsd.org; Sun, 04 Jan 2009 19:41:00 -0800 (PST) Message-id: <8BF346D6-B7EB-4FFC-9216-FEFCABBDADB8@mac.com> From: Marcel Moolenaar To: Takahashi Yoshihiro In-reply-to: <20081220.154722.162072679.nyan@jp.FreeBSD.org> Date: Sun, 04 Jan 2009 19:40:59 -0800 References: <4EA5F491-CC52-43EC-AC03-F50F8B2D6186@mac.com> <20081219.181532.241936859.nyan@jp.FreeBSD.org> <354036B7-A4AA-4D66-A2AC-9CB66D292FAA@mac.com> <20081220.154722.162072679.nyan@jp.FreeBSD.org> X-Mailer: Apple Mail (2.930.3) Cc: current@freebsd.org Subject: Re: gpart 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: Mon, 05 Jan 2009 03:41:01 -0000 On Dec 19, 2008, at 10:47 PM, Takahashi Yoshihiro wrote: > In article <354036B7-A4AA-4D66-A2AC-9CB66D292FAA@mac.com> > Marcel Moolenaar writes: > >>> Please see: >>> http://lists.freebsd.org/pipermail/freebsd-arch/2008-September/008627.html >>> >>> The da0 has a BSD slice. GEOM_BSD/GEOM_PC98 recognize it correctly. >>> But the gpart does not. From debug printf (dmesg.txt), it seems >>> that >>> the gpart read incorrect sector. >> >> This seems to indicate that the pc98 slice is wrong, or >> you don't have the BSD disklabel in the right sector. >> >> Can you give me a dump of the first 32 sectors on the >> disk and the first 32 sectors of slice 1. > > I put to the following. > http://home.jp.freebsd.org/~nyan/geom/da0 > http://home.jp.freebsd.org/~nyan/geom/da0s1 > > BTW, the result of using the gpart is: > http://home.jp.freebsd.org/~nyan/geom/gpart.da0 > http://home.jp.freebsd.org/~nyan/geom/gpart.da0s1 I think the problem is with the perceived geometry. If you boot verbose with GEOM_PC98, do you see that the fwsectors/fwheads are being guessed? If not, can you tell me what the fwsectors and fwheads values are? With GEOM_PART_PC98, can you run: gpart list da0 You should get something like: Geom name: da0 fwheads: 16 fwsectors: 63 last: 80293247 first: 63 entries: 4 scheme: MBR Of course scheme should be PC98 in your case. I suspect that the number of heads and/or sectors per track is different. Thanks, -- Marcel Moolenaar xcllnt@mac.com