Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2006 14:00:49 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Alex Bramley <a.bramley@gmail.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: Resurrecting a GELI volume
Message-ID:  <20061204130049.GA23412@garage.freebsd.pl>
In-Reply-To: <8cffb8c80612031222h180cde0ch790707802ada44a1@mail.gmail.com>
References:  <8cffb8c80612031132s2cdd69d6ia812e3f4e017f69e@mail.gmail.com> <20061203195004.GA3183@garage.freebsd.pl> <8cffb8c80612031222h180cde0ch790707802ada44a1@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Dec 03, 2006 at 08:22:03PM +0000, Alex Bramley wrote:
> On 12/3/06, Pawel Jakub Dawidek <pjd@freebsd.org> wrote:
> >On Sun, Dec 03, 2006 at 07:32:29PM +0000, Alex Bramley wrote:
> >> Hi,
> >>
> >> First, please CC me in any replies to the list, as I am (temporarily)
> >> off list due to moving jobs.
> >>
> >> I accidentally overwrote the metadata of a GELI volume by using geli
> >> init on the wrong device node (never try to do sysadmin tasks when
> >> hungover). I have the correct key and passphrase, and I would like to
> >> know whether it is possible to regain access to my lost data. I have
> >> already tried running init again on the volume with the correct key
> >> and passphrase, but (somewhat unsurprisingly) to no avail. Any
> >> assistance would be much appreciated.
> >
> >Passphrase is only used to encrypt the master key, which is stored in
> >metadata. That means you overwrote the master key and I'm afraid your
> >data is lost if you haven't backed the master key up before (with 'geli
> >backup').
>=20
> I don't suppose you could put some kind of check in to make this kind
> of slip more difficult to achieve in future? I can't see many times
> where you'd want to re-init an already encrypted volume. Hopefully it
> won't be too difficult to taste the volume for already existing
> metadata and ask for confirmation if it exists...

Good idea. I'll add the check and '-f' flag for the 'init' subcommand to
skip the check.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--lrZ03NoBR/3+SXJZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)

iD8DBQFFdBwBForvXbEpPzQRAiGFAJsGQ3ebX8YhnyEI+lbWQaVWTAevOgCfXfiw
kJfAR5pgwUNyz6BclwDOkVs=
=CJH7
-----END PGP SIGNATURE-----

--lrZ03NoBR/3+SXJZ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061204130049.GA23412>