From owner-freebsd-fs Sun Jun 16 16:32:42 2002 Delivered-To: freebsd-fs@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 08B3137B41D; Sun, 16 Jun 2002 16:32:36 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id CFB0281457; Mon, 17 Jun 2002 09:02:33 +0930 (CST) Date: Mon, 17 Jun 2002 09:02:33 +0930 From: Greg 'groggy' Lehey To: Hans Lambermont Cc: freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Subject: Re: fdisk seems broken for slices above cyl 1023 Message-ID: <20020616233233.GC56375@wantadilla.lemis.com> References: <20020616232401.C91106@moya.lambermont.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020616232401.C91106@moya.lambermont.dyndns.org> User-Agent: Mutt/1.3.99i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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. > Any help is appreciated. Don't talk about cylinders with fdisk. It works OK with LBA mode (start and end sector). Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message