From owner-freebsd-questions@FreeBSD.ORG Thu Jan 14 09:30:54 2010 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 DD184106566B for ; Thu, 14 Jan 2010 09:30:54 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 97B058FC0C for ; Thu, 14 Jan 2010 09:30:53 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NVM2S-0007tA-7B for freebsd-questions@freebsd.org; Thu, 14 Jan 2010 10:30:48 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jan 2010 10:30:48 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jan 2010 10:30:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Thu, 14 Jan 2010 10:30:00 +0100 Lines: 31 Message-ID: References: <201001140731.o0E7VtQ0018243@mp.cs.niu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.23 (X11/20091210) In-Reply-To: <201001140731.o0E7VtQ0018243@mp.cs.niu.edu> Sender: news Subject: Re: GELI file systems unusable after "glabel label" operations 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: Thu, 14 Jan 2010 09:30:54 -0000 Scott Bennett wrote: > I used "glabel label" to label each of the file systems I have on external > disk drives. Unfortunately, afterward I am now unable to "geli attach" any of > the GELI-encrypted file systems. The system is FreeBSD 7.2-STABLE. Hmm, did you say you had geli-encrypted drives, then you have overwritten the last sector with glabel, and then you are surprised you cannot get to the data any more? > Or have I just lost everything in the encrypted > file systems? I think you did. From the geli(8) man page: "init ... The last provider’s sector is used to store metadata." From the glabel(8) man page: "label ... metadata is stored in a provider’s last sector." If you did "geli init ... da0" and then "glabel label ... da0" then you have lost the geli metadata, which contains keys, etc. You might recover this, though, by reading geli(8) about the "restore" command. There is no way you can label your devices after you applied geli to them (which is one of the points of using geli...). You could destroy the geli layer (and the data), apply the label and then apply geli to the label.