From owner-freebsd-current Tue Nov 5 14: 3: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 1A1AA37B401; Tue, 5 Nov 2002 14:03:14 -0800 (PST) Received: from barbera.system.pl (barbera.system.pl [62.233.129.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA97743E6E; Tue, 5 Nov 2002 14:03:12 -0800 (PST) (envelope-from saper@barbera.system.pl) Received: from barbera.system.pl (localhost [127.0.0.1]) by barbera.system.pl (8.12.3/8.12.3) with ESMTP id gA5M3AKs073798; Tue, 5 Nov 2002 23:03:10 +0100 (CET) (envelope-from saper@barbera.system.pl) Received: (from saper@localhost) by barbera.system.pl (8.12.3/8.12.3/Submit) id gA5M35tx073797; Tue, 5 Nov 2002 23:03:05 +0100 (CET) (envelope-from saper) Date: Tue, 5 Nov 2002 23:03:04 +0100 From: Marcin Cieslak To: John Hay Cc: current@FreeBSD.ORG, phk@FreeBSD.ORG Subject: Re: fdisk -BI ob clean disk broken - but 1.64 works Message-ID: <20021105220304.GA73267@barbera.system.pl> Mail-Followup-To: John Hay , current@FreeBSD.ORG, phk@FreeBSD.ORG References: <200211020850.gA28ohm4086473@zibbi.icomtek.csir.co.za> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <200211020850.gA28ohm4086473@zibbi.icomtek.csir.co.za> 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 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On my system, FreeBSD 5.0-CURRENT #1: Mon Nov 4 21:00:50 CET 2002=20 fdisk ceased to work after a recent upgrade. It used to work fine under GEOMized kernel with both internal ATA disks and external IDE drive attached via fireware or USB (tested both). I had to switch to non-GEOM kernel (my disklabels give my warnings), updated everything, and fdisk ceased to work. I reverted fdisk.c to 1.64 (used to be 1.66) and now fdisk works fine again (with a non-GEOM kernel). Disk layouts below. Another question, can I "geomize" existing disk? I keep getting disklabel warnings about mismatched partitions and slices. --=20 << Marcin Cieslak // saper@system.pl >> ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=3D2432 heads=3D255 sectors/track=3D63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3D2432 heads=3D255 sectors/track=3D63 (16065 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 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX) start 63, size 14474502 (7067 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 900/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 14474565, size 4192965 (2047 Meg), flag 80 (active) beg: cyl 901/ head 0/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 18667530, size 20402550 (9962 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 4 is: ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=3D7297 heads=3D255 sectors/track=3D63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3D7297 heads=3D255 sectors/track=3D63 (16065 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 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX) start 63, size 6136641 (2996 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 381/ head 252/ sector 63 The data for partition 2 is: sysid 14 (0x0e),(Primary 'big' DOS (>=3D 32MB, LBA)) start 6136704, size 2087568 (1019 Meg), flag 0 beg: cyl 381/ head 253/ sector 1; end: cyl 511/ head 238/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 8224272, size 4450320 (2173 Meg), flag 80 (active) beg: cyl 511/ head 239/ sector 1; end: cyl 788/ head 243/ sector 63 The data for partition 4 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 12674592, size 41930343 (20473 Meg), flag 80 (active) beg: cyl 788/ head 244/ sector 1; end: cyl 1023/ head 254/ sector 63 --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPchAGD2W2v2wY27ZAQGn3AP7BRH8KkP/2A7FivoJC/z3x1hNA8jSqnUH V7GOtD4sHIt7En1qLG97UQ936NWb+IwF58jOzyb28ODrJBOqu77FPWbzCWwENPgg 9YS59qq3YAqBRhxneKQmJR3W9XmXXGQLB3wE1DT25Qa3nXNQryuwc3wa80Y559Su tSYgIOjFX08= =KlRn -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message