From owner-freebsd-questions@freebsd.org Thu Oct 5 11:56:02 2017 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 8DBD4E361F9 for ; Thu, 5 Oct 2017 11:56:02 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 11A726D8EE for ; Thu, 5 Oct 2017 11:56:00 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from testbox.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id v95Btncu066974; Thu, 5 Oct 2017 13:55:50 +0200 (CEST) (envelope-from bah@bananmonarki.se) Subject: Re: GELI disk and glabel label To: Jonathan Bond-Caron , "freebsd-questions@freebsd.org" References: From: Bernt Hansson Message-ID: Date: Thu, 5 Oct 2017 13:55:49 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2017 11:56:02 -0000 On 10/05/17 03:03, Jonathan Bond-Caron wrote: > Hi, > > I was trying to organize hard disk using labels and labelled two geli disks: > https://marc.info/?l=freebsd-questions&m=147526341300616&w=2 > > glabel secure /dev/da1 > galbel backups /dev/da2 > > The problem is now I can't mount them :/ > geli attach -k /root/geli.key > geli: Cannot read metadata from /dev/da1 > > Is there anything I can do to 'revert' the glabel operation? If I have a backup of these disks, can I grab the metadata from them and restore the data? > > Jon > You have overwritten the geli data. Geli and glabel stores the metadata in the same place.