From owner-freebsd-questions@FreeBSD.ORG Wed Jan 26 00:37:57 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C98741065673 for ; Wed, 26 Jan 2011 00:37:57 +0000 (UTC) (envelope-from rnmtw@lazlarlyricon.com) Received: from mailgw21.surf-town.net (mail6.surf-town.net [212.97.132.46]) by mx1.freebsd.org (Postfix) with ESMTP id 800018FC0C for ; Wed, 26 Jan 2011 00:37:57 +0000 (UTC) Received: by mailgw21.surf-town.net (Postfix, from userid 65534) id 2325643FD; Wed, 26 Jan 2011 01:21:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailgw21.surf-town.net (Postfix) with ESMTP id 0E7BF4054 for ; Wed, 26 Jan 2011 01:21:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mailgw21.surf-town.net X-Spam-Flag: NO X-Spam-Score: -1.44 X-Spam-Level: X-Spam-Status: No, score=-1.44 tagged_above=-999 required=7 tests=[ALL_TRUSTED=-1.44] Received: from mailgw21.surf-town.net ([127.0.0.1]) by localhost (mailgw21.surf-town.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vUaW+nyTrCrv for ; Wed, 26 Jan 2011 01:21:41 +0100 (CET) Received: from lazlar.kicks-ass.net (c-4d80e355.09-42-6e6b7010.cust.bredbandsbolaget.se [85.227.132.158]) by mailgw21.surf-town.net (Postfix) with ESMTPA id 79EA2442E for ; Wed, 26 Jan 2011 01:21:41 +0100 (CET) Message-ID: <4D3F6914.3000000@lazlarlyricon.com> Date: Wed, 26 Jan 2011 01:21:40 +0100 From: Rolf G Nielsen User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; sv-SE; rv:1.9.2.13) Gecko/20110117 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20110125014223.GA13385@auricle.charter.net> <4D3E8DC0.9060605@gmx.com> <20110125140705.GA20041@auricle.charter.net> <4D3EDE51.6070404@lazlarlyricon.com> <20110125181339.GA21203@auricle.charter.net> <4D3F1649.9000608@lazlarlyricon.com> <20110125183709.GA22024@auricle.charter.net> In-Reply-To: <20110125183709.GA22024@auricle.charter.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: How to label a GELI device X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2011 00:37:57 -0000 2011-01-25 19:37, J. Porter Clark skrev: > On Tue, Jan 25, 2011 at 07:28:25PM +0100, Rolf Nielsen wrote: >> X-Spam-Level: >> >> 2011-01-25 19:13, J. Porter Clark skrev: >>> On Tue, Jan 25, 2011 at 03:29:37PM +0100, Rolf Nielsen wrote: >>>> >>>> Correct me if I'm wrong anyone. >>>> You need to first label da0s1d >>>> >>>> e.g. like so >>>> >>>> glabel label data da0s1d >>>> >>>> then geli init the labeled device >>>> >>>> e.g. like so >>>> >>>> geli init -l 256 -s 4096 label/data >>> >>> Unfortunately, this step overwrites the label. >> >> It does not. I just tested it with a file backed md device, and >> hexdumped it after each step (creating the file, mdconfig it, label the >> md device and encrypting it). >> After the first two steps, I got just zeros, after labeling it, I got >> the last sector containing the label, and after encrypting it, I got the >> second last sector (i.e. the last sector of the labeled device) >> containing the eli data and the last secor still containing the label. >> >> If it does overwrite the label, you most likely specified the da0s1d to >> the geli init command. You need to specify label/data (replace "data" >> with the name you choose). > > Ah! That is, in fact, exactly what I did. I didn't realize > that the glabeled device was actually shrunk by 1 sector. > > Thanks! > You're welcome. Hope you got it working in the end. :)