Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2010 10:30:00 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: GELI file systems unusable after "glabel label" operations
Message-ID:  <himo76$ckh$1@ger.gmane.org>
In-Reply-To: <201001140731.o0E7VtQ0018243@mp.cs.niu.edu>
References:  <201001140731.o0E7VtQ0018243@mp.cs.niu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?himo76$ckh$1>