Re: "geometry does not match label"

From: David O'Brien <obrien_at_freebsd.org>
Date: Tue, 30 Dec 2008 09:11:27 -0800
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_at_FreeBSD.org)
Received on Tue Dec 30 2008 - 16:11:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:39 UTC