From owner-freebsd-current Mon Feb 17 5:36: 7 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9269E37B401; Mon, 17 Feb 2003 05:36:05 -0800 (PST) Received: from baraca.united.net.ua (ns.united.net.ua [193.111.8.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 863AF43FB1; Mon, 17 Feb 2003 05:36:01 -0800 (PST) (envelope-from max@vega.com) Received: from vega.vega.com (root@xDSL-2-2.united.net.ua [193.111.9.226]) by baraca.united.net.ua (8.12.6/8.12.6) with ESMTP id h1HDZuUY077175; Mon, 17 Feb 2003 15:35:58 +0200 (EET) (envelope-from max@vega.com) Received: from vega.vega.com (max@localhost.vega.com [127.0.0.1]) by vega.vega.com (8.12.6/8.12.5) with ESMTP id h1HDa0Uk034615; Mon, 17 Feb 2003 15:36:00 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: (from max@localhost) by vega.vega.com (8.12.6/8.12.5/Submit) id h1HDa0Dd034614; Mon, 17 Feb 2003 15:36:00 +0200 (EET) Date: Mon, 17 Feb 2003 15:35:59 +0200 From: Maxim Sobolev To: current@freebsd.org, phk@freebsd.org Subject: disklabel is broken (GEOM related) Message-ID: <20030217133559.GA34599@vega.vega.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, It seems that disklabel is currently broken on -current. In `read' mode it reports incorrect information about disk layout: root@notebook# disklabel -r ad0s1 # /dev/ad0s1c: type: unknown disk: amnesiac label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 240 sectors/cylinder: 15120 cylinders: 416 sectors/unit: 6289920 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 6086656 233504 4.2BSD 0 0 0 # (Cyl. 15*- 417*) b: 200000 31240 swap # (Cyl. 2*- 15*) c: 6289920 30240 unused 0 0 # (Cyl. 2 - 417) partition a: partition extends past end of unit partition c: partition extends past end of unit Warning, partition c doesn't start at 0! Warning, An incorrect partition c may cause problems for standard system utilities However, in the `edit' mode everything is OK: root@notebook# disklabel -e ad0s1 # /dev/ad0s1c: type: unknown disk: amnesiac label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 240 sectors/cylinder: 15120 cylinders: 416 sectors/unit: 6289920 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 6086656 203264 4.2BSD 0 0 0 # (Cyl. 13*- 415*) b: 200000 1000 swap # (Cyl. 0*- 13*) c: 6289920 0 unused 0 0 # (Cyl. 0 - 415) The problem doesn't exist in the my previous -current kernel compiled at the beginning of January. Please fix. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message