From owner-freebsd-questions@freebsd.org Sat Apr 16 22:58:33 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 CD61FB10523 for ; Sat, 16 Apr 2016 22:58:33 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9FA1B115F for ; Sat, 16 Apr 2016 22:58:33 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u3GMw1pp073755 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 16 Apr 2016 16:58:01 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u3GMvwVI073748; Sat, 16 Apr 2016 16:58:01 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 16 Apr 2016 16:57:58 -0600 (MDT) From: Warren Block To: Bernt Hansson cc: freebsd-questions@freebsd.org Subject: Re: Geli and glabel ? In-Reply-To: <57126AFB.9060303@bananmonarki.se> Message-ID: References: <57125647.9050805@bananmonarki.se> <57126AFB.9060303@bananmonarki.se> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sat, 16 Apr 2016 16:58:01 -0600 (MDT) 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: Sat, 16 Apr 2016 22:58:33 -0000 On Sat, 16 Apr 2016, 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? No, the /dev/disc device is being used both times. geli attach disc creates a disc.eli device. Now create the label on *that*: glabel label 1213 /dev/disc.eli Maybe some ASCII art will help: ,-disc--------------. | | | ,-disc.eli----. | | | | | | | ,-1213--. | | | | | | | | | | | | | | | | `-------' | | | | | | | `-------------' | | | `-------------------' ...well, maybe not.