From owner-freebsd-current@FreeBSD.ORG Wed May 17 09:46:50 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 4FFDE16A408 for ; Wed, 17 May 2006 09:46:50 +0000 (UTC) (envelope-from rosti.bsd@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35D8143D5A for ; Wed, 17 May 2006 09:46:47 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: by nf-out-0910.google.com with SMTP id x29so89459nfb for ; Wed, 17 May 2006 02:46:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=gY7VJMlcZNwYugpjSrfT/0N/ohP1XXSaQPbZHwEvIjb+DMgCOdJi+VVBUkrVJaPMSOAJA3u3R050Hl5pjAgRwO9tCWsTl50plHrmz9GBv78uD5AkPNafVHzXflFs+L7k2a0ozu3hISyC5A5AgYm50PbHD+FGq2Xeejlvk6TGf68= Received: by 10.49.55.6 with SMTP id h6mr565340nfk; Wed, 17 May 2006 02:46:41 -0700 (PDT) Received: from saturn.lan ( [212.143.154.227]) by mx.gmail.com with ESMTP id x1sm864772nfb.2006.05.17.02.46.38; Wed, 17 May 2006 02:46:40 -0700 (PDT) Date: Wed, 17 May 2006 12:46:41 +0300 From: Rostislav Krasny To: Pawel Jakub Dawidek Message-Id: <20060517124641.be537443.rosti.bsd@gmail.com> In-Reply-To: <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> <20060517085720.GA98040@garage.freebsd.pl> X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.17; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 09:46:50 -0000 On Wed, 17 May 2006 10:57:20 +0200 Pawel Jakub Dawidek wrote: > 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: > +> > +> > On Tue, May 16, 2006 at 10:26:54PM -0400, Rong-en Fan wrote: > +> > +> >From bsdlabel(8): > +> > +> > +> > +> The first partition should start at offset 16, because the first 16 > +> > +> sectors are reserved for metadata. > +> > +> > +> > +> I think BSDInstaller should change to not create first slice at offset 0. > +> ^^^^^ > +> Yet another "bsd slice" / "bsd partition" confusion? :-) > +> > +> > > +> > Grrr!!! DEFINITELY! Please, first partition at offset 16. > +> > +> 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:) Certainly. I'm only wondering now, why it wasn't fixed in sysinstall during so many years? And had those hacks in UFS and Swap been made because of sysinstall or because of something else? By the way, how could one change offset of first bsd partitions on already installed FreeBSD without destroying it? > 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. I just thought I can trust the official installer with partitioning the slices.