From owner-freebsd-geom@FreeBSD.ORG Mon Apr 5 11:28:55 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34E8F16A4CE for ; Mon, 5 Apr 2004 11:28:55 -0700 (PDT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEDEF43D41 for ; Mon, 5 Apr 2004 11:28:54 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 16841 invoked from network); 5 Apr 2004 18:28:54 -0000 Received: from dsl017-045-168.spk4.dsl.speakeasy.net (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 5 Apr 2004 18:28:54 -0000 Received: from hydrogen.funkthat.com (nmbcnc@localhost.funkthat.com [127.0.0.1])i35ISrOE011368; Mon, 5 Apr 2004 11:28:53 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i35ISqDD011367; Mon, 5 Apr 2004 11:28:52 -0700 (PDT) Date: Mon, 5 Apr 2004 11:28:52 -0700 From: John-Mark Gurney To: Poul-Henning Kamp Message-ID: <20040405182852.GC567@funkthat.com> References: <1788.1081149679@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1788.1081149679@critter.freebsd.dk> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: mmarkows@twcny.rr.com cc: freebsd-geom@freebsd.org Subject: Re: how ro recover encrypted slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 18:28:55 -0000 Poul-Henning Kamp wrote this message on Mon, Apr 05, 2004 at 09:21 +0200: > In message , mmarkows@twcny.rr.com writ > es: > >I mounted a GEOM-encrypted slice to /home2 and stored all my data there. Two days ago, I decided to update my FreeBSD from 5.2 to 5.2.1. I have done it several times before, so I felt self-assured. I backed up my config files, forgetting unfortunately about /etc/gbde/ad1s2. > > > >During the update procedure my system was messed up to the extent that it seemed reasonable to do a clean install of 5.2.1. I did it without saving /etc/gbde/ad1s2, and without touching the encrypted slice. > > > >Now, I am in a predicament because I cannot access my files that I need for my work tomorrow. I know that I messed up, but my last backup is 3 weeks old, and essentially it is no good any more. > > > >Is there any way to recover the data? I have 13 hours to do it. > > The data stored in the file you lost is only the encrypted location of > the master key, so in theory you could do a brute force search for the > master key. Doesn't this mean he can restore from his 3 week old backup of /etc/gbde/ad1s2, and then get back to bussiness? I assume that his backup covered /etc... and that /etc/gbde/ad1s2 doesn't change over time... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."