From owner-freebsd-current@FreeBSD.ORG Tue Feb 21 22:07:52 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 4AE0616A420 for ; Tue, 21 Feb 2006 22:07:52 +0000 (GMT) (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 359FE43D5A for ; Tue, 21 Feb 2006 22:07:50 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 19A6C512B0; Tue, 21 Feb 2006 23:07:49 +0100 (CET) Received: from localhost (dks11.neoplus.adsl.tpnet.pl [83.24.22.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id CACC15129D; Tue, 21 Feb 2006 23:07:42 +0100 (CET) Date: Tue, 21 Feb 2006 23:07:27 +0100 From: Pawel Jakub Dawidek To: Balgansuren Batsukh , freebsd-current@freebsd.org Message-ID: <20060221220727.GA8554@garage.freebsd.pl> References: <00c101c636d3$938823d0$0201000a@JACK> <20060221181419.GC2996@galgenberg.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <20060221181419.GC2996@galgenberg.net> 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=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Subject: Re: partition for GELI disk 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: Tue, 21 Feb 2006 22:07:52 -0000 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 21, 2006 at 07:14:19PM +0100, Ulrich Spoerlein wrote: +> The problem is known (at least) to me. The last '*' will expand to the +> complete remaining size of the disk, not taking the offset '16' for +> partition 'a' into account. So either change the offset of 'a' to '0' +> (why is there such an offset anyway?) or calculate it by hand. It is very, _very_ important. Those 16 secotors is where bsdlabel(8) store its metadata. If you put 0 there, be ready to lose your partitions. Swap skips first 16 sectors, so it won't touch it. UFS skips first 16 sectors, so you are safe here as well, but those are evil hacks. If you configure something else on first partition which starts at offset 0 (eg. encrypted partition) you are in big troubles. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD+48fForvXbEpPzQRAiLAAJ9gFtJEdFpeIf1hYXLohRcl5T9O7wCcCxy/ ENtZ3hPnbaFckcs8q9dOYcQ= =kgL9 -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--