From owner-freebsd-stable Sun Jun 16 18:36:42 2002 Delivered-To: freebsd-stable@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 901F637B41A; Sun, 16 Jun 2002 18:36:35 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g5H1aYY29878; Sun, 16 Jun 2002 19:36:34 -0600 (MDT) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g5H1aWG65173; Sun, 16 Jun 2002 19:36:33 -0600 (MDT) (envelope-from imp@village.org) Date: Sun, 16 Jun 2002 19:34:50 -0600 (MDT) Message-Id: <20020616.193450.124991810.imp@village.org> To: grog@FreeBSD.ORG Cc: hans@lambermont.dyndns.org, freebsd-stable@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: fdisk seems broken for slices above cyl 1023 From: "M. Warner Losh" In-Reply-To: <20020616233233.GC56375@wantadilla.lemis.com> References: <20020616232401.C91106@moya.lambermont.dyndns.org> <20020616233233.GC56375@wantadilla.lemis.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20020616233233.GC56375@wantadilla.lemis.com> "Greg 'groggy' Lehey" writes: : On Sunday, 16 June 2002 at 23:24:01 +0200, Hans Lambermont wrote: : > Hi, : > : > I'm battling with fdisk on a 20 GB disk with 4 slices. : > : > This is the disk: : > ad0: 19077MB [38760/16/63] at ata0-master UDMA100 : > On FreeBSD 4.6-RC #1: Sun Jun 16 2002 : > Fdisk translates the geometry to : cylinders=2584 heads=240 : > sectors/track=63 (15120 blks/cyl) : > : > This disk was partitioned during sysinstal in 4 slices: : > /dev/ad0s1 Suspend to Disk, 0.3 GB : > /dev/ad0s2 FreeBSD slice 1, 8.3 GB : > /dev/ad0s3 FreeBSD slice 2, 8.3 GB : > /dev/ad0s4 other, 2.4 GB : > (etc) : > Still 124 ?! : > : > This is seriously wrong. This looks like an fdisk bug to me. : : Yes, correct. fdisk truncates the cylinder number to 10 bits. I : looked at the code a couple of days ago, but it's such a mess that the : best thing to do would be to throw it away and start again, possibly : importing something from NetBSD or OpenBSD. This is not a bug, but rather the correct way to set things up with pc hardware. The MBR requires stupid things like this :-(. I'd love to import another fdisk too, ours really is a mess. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message