From owner-freebsd-questions@freebsd.org Sun Apr 17 00:35:10 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31D2BB0AC46 for ; Sun, 17 Apr 2016 00:35:10 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 153B11CAE for ; Sun, 17 Apr 2016 00:35:09 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=ySpm5Dy6rvPNg9l9ZwtFxUcQ0CHlPL7LxmD44a4yMsg=; b=G0jy6mSAI1JI5r8NVu5DUY2QDC rQVyeYgiQkoIo9sGNHHwL63IKFn7XtTuoQT0500E9Zky9U5DyXiR3GyzvPYSellEYRBDvxdeXLoVQ gIblll2Xa29vj1eui5udvSsvvzHxiqFUfFADmgwCYTocEFPhPBe2XjJ8HXZr2pvuVDbI=; Received: from [114.124.37.80] (port=33067 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_1) (envelope-from ) id 1arag5-003z5x-LB; Sat, 16 Apr 2016 18:35:06 -0600 Date: Sun, 17 Apr 2016 08:34:59 +0800 From: Erich Dollansky To: Bernt Hansson Cc: freebsd-questions@freebsd.org Subject: Re: Geli and glabel ? Message-ID: <20160417083459.4d47fa53@X220.alogt.com> In-Reply-To: <57126AFB.9060303@bananmonarki.se> References: <57125647.9050805@bananmonarki.se> <57126AFB.9060303@bananmonarki.se> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Authenticated-Sender: sl-508-2.slc.westdc.net: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2016 00:35:10 -0000 Hi, On Sat, 16 Apr 2016 18:40:27 +0200 Bernt Hansson wrote: > On 2016-04-16 18:08, Warren Block wrote: > > On Sat, 16 Apr 2016, Bernt Hansson wrote: > > > >> Hello list. > >> > >> I'm wondering about glabel and geli. It seems that one can not > >> have them on the same disc. > >> > >> On swap it works nice but not on my home directory. Glabel > >> overwrites the meta data from geli > >> so the disc can not be mounted. > >> > >> Can this scenario work? How? > > > > One must be inside the other. Create a glabel device in the GELI > > one, then refer to the glabel device with /dev/label/xyz. > > Along this line? > > geli attach disc > password: > > glabel label 1213 /dev/disc > > Is that correct? it should work. I do it the other way around. First label the device and then use geli to attach the label. It will not help you much if your label is inside geli as you do not see the label without geli. If you use glabel outside geli you can then tell geli to use the label name instead of the device name. Erich