From owner-freebsd-fs Sun Jun 16 17:14:49 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 1DE8E37B43B; Sun, 16 Jun 2002 17:14:45 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 0550981457; Mon, 17 Jun 2002 09:44:41 +0930 (CST) Date: Mon, 17 Jun 2002 09:44:40 +0930 From: Greg 'groggy' Lehey To: Dave Uhring Cc: Hans Lambermont , freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Subject: Re: fdisk seems broken for slices above cyl 1023 Message-ID: <20020617001440.GE56375@wantadilla.lemis.com> References: <20020616232401.C91106@moya.lambermont.dyndns.org> <20020616233233.GC56375@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 19:06:13 -0500, Dave Uhring wrote: > On Sunday 16 June 2002 06:32 pm, Greg 'groggy' Lehey wrote: > >> >> 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. > > The fdisk utility from both NetBSD and OpenBSD have been unable to > recognize any drive larger than 1024 cylinders in my experience. I > would recommend you use them before importing any of their code. "Please test before committing" :-) Yes, I had certainly planned to do that. > The only fdisk utility which I have found to work consistently well > with large drives is the one used in the Linux distros. It's unlikely that we'll import that due to license considerations. My consideration of the other BSD fdisks is that they might be a better starting point. 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