Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2006 10:57:20 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Rostislav Krasny <rosti.bsd@gmail.com>
Cc:        marius.nuennerich@gmx.net, freebsd-current@freebsd.org, grafan@gmail.com, andrew@fubar.geek.nz
Subject:   Re: BSDInstaller snapshot
Message-ID:  <20060517085720.GA98040@garage.freebsd.pl>
In-Reply-To: <20060517104531.ee66f23e.rosti.bsd@gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <pjd@FreeBSD.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060517085720.GA98040>