From owner-freebsd-current@FreeBSD.ORG Tue Dec 30 17:11:29 2008 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 A0BDF10656CB for ; Tue, 30 Dec 2008 17:11:29 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.nuxi.org (trang.nuxi.org [74.95.12.85]) by mx1.freebsd.org (Postfix) with ESMTP id 7C7988FC08 for ; Tue, 30 Dec 2008 17:11:29 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.nuxi.org (obrien@localhost [127.0.0.1]) by dragon.nuxi.org (8.14.2/8.14.2) with ESMTP id mBUHBSQq019025; Tue, 30 Dec 2008 09:11:28 -0800 (PST) (envelope-from obrien@dragon.nuxi.org) Received: (from obrien@localhost) by dragon.nuxi.org (8.14.2/8.14.2/Submit) id mBUHBRmW019024; Tue, 30 Dec 2008 09:11:27 -0800 (PST) (envelope-from obrien) Date: Tue, 30 Dec 2008 09:11:27 -0800 From: "David O'Brien" To: Marcel Moolenaar Message-ID: <20081230171127.GA18967@dragon.NUXI.org> Mail-Followup-To: obrien@freebsd.org, Marcel Moolenaar , Peter Jeremy , freebsd-current@freebsd.org References: <95872328-4FBF-4DAD-98DE-024FF53A4505@mac.com> <20081226085453.GB26808@dragon.NUXI.org> <20081226210839.GG1081@server.vk2pj.dyndns.org> <193E7722-B42E-4118-86CB-4F389260B430@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <193E7722-B42E-4118-86CB-4F389260B430@mac.com> X-Operating-System: FreeBSD 8.0-CURRENT User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Peter Jeremy , freebsd-current@freebsd.org Subject: Re: "geometry does not match label" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 17:11:30 -0000 On Mon, Dec 29, 2008 at 10:31:47PM -0800, Marcel Moolenaar wrote: > On Dec 26, 2008, at 1:08 PM, Peter Jeremy wrote: >>> # disklabel /dev/ad8s4f >>> # /dev/ad8s4f: >>> 8 partitions: >>> # size offset fstype [fsize bsize bps/cpg] >>> c: 83441610 150994935 unused 0 0 # "raw" part, >>> don't edit >>> f: 83441610 150994935 4.2BSD 0 0 0 >>> partition c: offset past end of unit >>> partition c: partition extends past end of unit >>> disklabel: partition c doesn't start at 0! >>> disklabel: An incorrect partition c may cause problems for standard >>> system utilities >>> partition f: offset past end of unit >>> partition f: partition extends past end of unit >> >> It looks like GEOM_PART_BSD reports partition information that is >> incompatible with bsdlabel. > > disklabel reads the label from the disk. It's wrong on the > disk. Given the number of existing disks that folks will use with GEOM_PART_BSD, can you whip up a utility to read the existing disk label and write out a "proper" one? (most preferably is a label that releng7 and releng6 kernels + utils will tolerate too). -- -- David (obrien@FreeBSD.org)