From owner-freebsd-current@FreeBSD.ORG Wed May 17 08:59:19 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 467C016A403 for ; Wed, 17 May 2006 08:59:19 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46D5743D45 for ; Wed, 17 May 2006 08:59:17 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id ADCEC52DE8; Wed, 17 May 2006 10:59:16 +0200 (CEST) Received: from localhost (ana50.internetdsl.tpnet.pl [83.17.82.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 1BE6E52DE6; Wed, 17 May 2006 10:59:11 +0200 (CEST) Date: Wed, 17 May 2006 10:57:20 +0200 From: Pawel Jakub Dawidek To: Rostislav Krasny Message-ID: <20060517085720.GA98040@garage.freebsd.pl> References: <20060515150504.44b3a065.rosti.bsd@gmail.com> <4468FA1C.7040105@fubar.geek.nz> <20060516084310.05af8de4.rosti.bsd@gmail.com> <20060516202529.1d725675@sol> <20060516230400.5178bcdf.rosti.bsd@gmail.com> <20060516223639.0637dd0e@sol> <6eb82e0605161926y3ff4a1a3l8a369723cf7c3352@mail.gmail.com> <20060517065702.GC96341@garage.freebsd.pl> <20060517104531.ee66f23e.rosti.bsd@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20060517104531.ee66f23e.rosti.bsd@gmail.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: marius.nuennerich@gmx.net, freebsd-current@freebsd.org, grafan@gmail.com, andrew@fubar.geek.nz Subject: Re: BSDInstaller snapshot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 08:59:19 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 17, 2006 at 10:45:31AM +0300, Rostislav Krasny wrote: +> On Wed, 17 May 2006 08:57:02 +0200 +> Pawel Jakub Dawidek wrote: +>=20 +> > On Tue, May 16, 2006 at 10:26:54PM -0400, Rong-en Fan wrote: +> > +> >From bsdlabel(8): +> > +>=20 +> > +> The first partition should start at offset 16, because the first 16 +> > +> sectors are reserved for metadata. +> > +>=20 +> > +> I think BSDInstaller should change to not create first slice at off= set 0. +> ^^^^^ +> Yet another "bsd slice" / "bsd partition" confusion? :-) +>=20 +> >=20 +> > Grrr!!! DEFINITELY! Please, first partition at offset 16. +>=20 +> Interesting. Sysinstall makes the first "a" partition on a slice at +> offset 0 and FreeBSD works properly. What is this metadata on those +> first 16 sectors of a slice and when this metadata is really used? What?! You only think it works properly. It doesn't. UFS works on such partition, because UFS has a hack to skip first 16 sectors. Swap works on such partition, because swap code has a hack to skip first 16 sectors. Try to encrypt partition which starts at offset 16 with geli(8) or gbde(8). Try to concatenate or stripe two partitions that start at offset 16. The former will destroy your metadata (at least it did so, not sure if you won't get EPERM now). The latter will return EPERM when you try to access data in the middle of your concat device or at the begining of you stripped device. Many evil things can happen, belive me. Using offset 0 and making metadata visible from usable partition is BAD. Period. Ok, I hope it is clear now:) PS. What ever you do, don't treat sysinstall as an example of how to do things right. It is ten years old and some things have changed over the time. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEauVwForvXbEpPzQRAuWwAKCvYg+GOkTCVPW7tf+TZXqHWroTQwCeKMO1 sq90cW7mu/lfdO0vuzS2yTI= =yM3c -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--