From owner-freebsd-stable Sun Jun 16 21:51:18 2002 Delivered-To: freebsd-stable@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 4BC2A37B404; Sun, 16 Jun 2002 21:51:13 -0700 (PDT) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g5H4naV7022032; Mon, 17 Jun 2002 06:49:36 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "Greg 'groggy' Lehey" Cc: Hans Lambermont , freebsd-stable@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: fdisk seems broken for slices above cyl 1023 In-Reply-To: Your message of "Mon, 17 Jun 2002 09:02:33 +0930." <20020616233233.GC56375@wantadilla.lemis.com> Date: Mon, 17 Jun 2002 06:49:36 +0200 Message-ID: <22031.1024289376@critter.freebsd.dk> From: Poul-Henning Kamp 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: >> 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 answer is wrong in every important aspect: The cylinder field is only 10 bits wide in the MBR, so fdisk can't help but truncate the cylinder field. NetBSD or OpenBSD fdisk are no better than ours. George Cox is working on "libwhisk" which will supposedly take care of fdisk, disklabel, libdisk and sysinstall once done. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message