From owner-freebsd-current Thu Nov 21 5:32:17 2002 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 58CE537B401 for ; Thu, 21 Nov 2002 05:32:14 -0800 (PST) Received: from MX1.estpak.ee (ld3.estpak.ee [194.126.101.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45D9D43E6E for ; Thu, 21 Nov 2002 05:32:13 -0800 (PST) (envelope-from kalts@estpak.ee) Received: from tiiu.internal (80-235-40-232-dsl.mus.estpak.ee [80.235.40.232]) by MX1.estpak.ee (Postfix) with ESMTP id 8FD1F8899C; Thu, 21 Nov 2002 15:31:09 +0200 (EET) Received: from tiiu.internal (localhost [127.0.0.1]) by tiiu.internal (8.12.6/8.12.6) with ESMTP id gALDW3w6002187; Thu, 21 Nov 2002 15:32:03 +0200 (EET) (envelope-from vallo@tiiu.internal) Received: (from vallo@localhost) by tiiu.internal (8.12.6/8.12.6/Submit) id gALDW3LN002186; Thu, 21 Nov 2002 15:32:03 +0200 (EET) (envelope-from vallo) Date: Thu, 21 Nov 2002 15:32:02 +0200 From: Vallo Kallaste To: Poul-Henning Kamp Cc: current@freebsd.org Subject: Re: cvs commit: src/sys/geom geom_slice.c Message-ID: <20021121133202.GA2151@tiiu.internal> Reply-To: kalts@estpak.ee References: <200211202012.gAKKCqRm098590@repoman.freebsd.org> <6719.1037823541@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6719.1037823541@critter.freebsd.dk> User-Agent: Mutt/1.5.1i-ja.1 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 On Wed, Nov 20, 2002 at 09:19:01PM +0100, Poul-Henning Kamp wrote: > This should fix a large part of the disklabel -e bogosity people > have been seeing. > > In message <200211202012.gAKKCqRm098590@repoman.freebsd.org>, Poul-Henning Kamp > writes: > >phk 2002/11/20 12:12:52 PST > > > > Modified files: > > sys/geom geom_slice.c > > Log: > > Remember to update the providers idea of its size when we reconfigure > > a slice child. > > > > Approved by: re > > > > Revision Changes Path > > 1.27 +1 -0 src/sys/geom/geom_slice.c root:vallo# ident /usr/src/sys/geom/geom_slice.c /usr/src/sys/geom/geom_slice.c: $FreeBSD: src/sys/geom/geom_slice.c,v 1.27 2002/11/20 20:12:52 phk Exp $ root:vallo# fdisk ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=39703 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=39703 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 16382961 (7999 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 16383024, size 16383024 (7999 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 15/ sector 63 The data for partition 3 is: The data for partition 4 is: root:vallo# disklabel ad0s1 # /dev/ad0s1c: type: ESDI disk: ad0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 39703 sectors/unit: 40020624 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: 524288 0 4.2BSD 2048 16384 32776 # (Cyl. 0 - 520*) b: 524288 524288 unused 0 0 # (Cyl. 520*- 1040*) c: 16382961 0 unused 0 0 # (Cyl. 0 - 16252*) d: 15334385 1048576 4.2BSD 2048 16384 28552 # (Cyl. 1040*- 16252*) Warning, partition c doesn't cover the whole unit! Warning, An incorrect partition c may cause problems for standard system utilities root:vallo# disklabel -r ad0s1 # /dev/ad0s1c: type: ESDI disk: ad0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 39703 sectors/unit: 40020624 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: 524288 63 4.2BSD 2048 16384 32776 # (Cyl. 0*- 520*) b: 524288 524351 unused 0 0 # (Cyl. 520*- 1040*) c: 16382961 63 unused 0 0 # (Cyl. 0*- 16252*) d: 15334385 1048639 4.2BSD 2048 16384 28552 # (Cyl. 1040*- 16252*) Warning, partition c doesn't start at 0! Warning, partition c doesn't cover the whole unit! Warning, An incorrect partition c may cause problems for standard system utilities root:vallo# -- Vallo Kallaste kalts@estpak.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message