Date: Sun, 04 Jan 2009 19:40:59 -0800 From: Marcel Moolenaar <xcllnt@mac.com> To: Takahashi Yoshihiro <nyan@jp.FreeBSD.org> Cc: current@freebsd.org Subject: Re: gpart Message-ID: <8BF346D6-B7EB-4FFC-9216-FEFCABBDADB8@mac.com> In-Reply-To: <20081220.154722.162072679.nyan@jp.FreeBSD.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 19, 2008, at 10:47 PM, Takahashi Yoshihiro wrote: > In article <354036B7-A4AA-4D66-A2AC-9CB66D292FAA@mac.com> > Marcel Moolenaar <xcllnt@mac.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8BF346D6-B7EB-4FFC-9216-FEFCABBDADB8>