From owner-freebsd-bugs Wed Mar 29 02:26:32 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id CAA03087 for bugs-outgoing; Wed, 29 Mar 1995 02:26:32 -0800 Received: from isl.cf.ac.uk (isl-gate.elsy.cf.ac.uk [131.251.22.1]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id CAA03049; Wed, 29 Mar 1995 02:26:23 -0800 Received: (from paul@localhost) by isl.cf.ac.uk (8.6.9/8.6.9) id LAA18458; Wed, 29 Mar 1995 11:25:59 +0100 From: Paul Richards Message-Id: <199503291025.LAA18458@isl.cf.ac.uk> Subject: Re: kern/280: new slice manager totally confused about old slice disks To: bde@zeta.org.au (Bruce Evans) Date: Wed, 29 Mar 1995 11:25:58 +0100 (BST) Cc: bde@zeta.org.au, gvrooij@mmra1.ms.philips.nl, freebsd-bugs@freefall.cdrom.com, jkh@freefall.cdrom.com, pst@shockwave.com In-Reply-To: <199503290933.TAA25301@godzilla.zeta.org.au> from "Bruce Evans" at Mar 29, 95 07:33:09 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1195 Sender: bugs-owner@FreeBSD.org Precedence: bulk In reply to Bruce Evans who said > > >> I think sysinstall creates a valid disk label with size > >> #secpertrack * #heads * #cyl in both the d_secperunit and the 'd' partition > >> size fields. The problem occurs when the sd driver blows away the 'd' > >> partition size field (replacing it with the total #sec) without touching > >> the d_secperunit field. The wd driver is more careful and verbose. It > > >Might well explain what we see indeed. But the same holds for the c partition. > > Maybe sysinstall set the size of the c partition correctly to extend to > the end of the disk, and d_secperunit to match. Old versions of > `disklabel -e' rounded down d_secperunit to a cylinder boundary so running > `disklabel -e' could cause the problem. I doubt sysinstall is doing anything right anymore. It certainly won't be setting the c partition to cover the whole disk. It's still setting d to cover the whole disk and c to the BSD slice. -- Paul Richards, FreeBSD core team member. Internet: paul@FreeBSD.org, URL: http://isl.cf.ac.uk/~paul/ Phone: +44 1222 874000 x6646 (work), +44 1222 457651 (home) Dept. Mechanical Engineering, University of Wales, College Cardiff.