From owner-freebsd-stable Mon Jun 17 0:53: 9 2002 Delivered-To: freebsd-stable@freebsd.org Received: from moya.lambermont.dyndns.org (e165253.upc-e.chello.nl [213.93.165.253]) by hub.freebsd.org (Postfix) with ESMTP id A689D37B41D; Mon, 17 Jun 2002 00:52:44 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by moya.lambermont.dyndns.org (Postfix) with ESMTP id 0B6C236413; Mon, 17 Jun 2002 09:52:43 +0200 (CEST) Received: by moya.lambermont.dyndns.org (Postfix, from userid 1001) id 4B71F36405; Mon, 17 Jun 2002 09:52:41 +0200 (CEST) Date: Mon, 17 Jun 2002 09:52:41 +0200 To: Bruce Evans Cc: freebsd-stable@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: fdisk seems broken for slices above cyl 1023 Message-ID: <20020617095241.A51682@moya.lambermont.dyndns.org> References: <20020616233233.GC56375@wantadilla.lemis.com> <20020617125915.H3073-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020617125915.H3073-100000@gamplex.bde.org>; from bde@zeta.org.au on Mon, Jun 17, 2002 at 01:44:41PM +1000 From: hans@lambermont.dyndns.org (Hans Lambermont) X-Virus-Scanned: by AMaViS perl-11 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 Bruce Evans wrote: > On Mon, 17 Jun 2002, Greg 'groggy' Lehey wrote: > > This is correct and not a bug. C/H/S values in fdisk tables are limited > to 10/8/6 bits, respectively, so the best tha can be done with a 'C' > value larger than 1023 is truncate it mod 1024. Ok, this makes sense. > FreeBSD's fdisk(8) does this. However, over the last few years, some > bad hacks for clipping the CHS values have become less nonstandard, > and are required to satisfy some broken BIOSes. Your original fdisk > entries (not shown above) seem to have been created by an fdisk that > supports this. That's interesting then. This disk was labeled by the install procedure from 4.5-R ! So I assume that the same fdisk is responsible for this. > On Mon, 17 Jun 2002, Greg 'groggy' Lehey wrote: > > Don't talk about cylinders with fdisk. It works OK with LBA mode > > (start and end sector). Are you saying that I can ignore the cyl stuff completely ? I can just write a cyl-overlapping table with the right start/end sector stuff ? Should I set all start/end cylinders above 1023 to 1023 to be safe ? > CHS must be set correctly for booting on some systems. Then I'm in luck, the 3th slice is still bootable :) Hans Lambermont -- http://lambermont.webhop.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message