From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by mail.saout.de (Postfix) with ESMTP id 76AA6970B for ; Wed, 12 Aug 2009 00:25:28 +0200 (CEST) Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tMRLYt+HAGXB for ; Wed, 12 Aug 2009 00:25:23 +0200 (CEST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.saout.de (Postfix) with SMTP for ; Wed, 12 Aug 2009 00:25:23 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Wed, 12 Aug 2009 00:25:20 +0200 From: RaMaier@gmx.de In-Reply-To: <20090811214229.GA4796@tansi.org> Message-ID: <20090811222520.300700@gmx.net> MIME-Version: 1.0 References: <4A8174D3.7000909@gmx.de> <4A8179D4.40807@gmx.at> <20090811212516.39750@gmx.net> <20090811214229.GA4796@tansi.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] reinstallation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arno Wagner , dm-crypt@saout.de When I just enter=20 cryptsetup luksOpen /dev/sda2 tresor=20 I get the reply: Command failed: No setup backend available I guess it somehow has a relation to the mapper. Any idea ? Best regards Rainer -------- Original-Nachricht -------- > Datum: Tue, 11 Aug 2009 23:42:29 +0200 > Von: Arno Wagner > An: RaMaier@gmx.de > Betreff: Re: [dm-crypt] reinstallation > I suspect luksFormat wipes the LUKS superblock and creates > a new one, i.e. all data is permanently lost. mkfs.ext3 > will overwrote the filesystem metadata, i.e. the filesystem > structure is lost. >=20 > However=20 > > cryptsetup luksOpen /dev/sda2 tresor > > mount /dev/mapper/tresor /tresor >=20 > should work, with sda2 replaced with whatever the=20 > LUKS container now is in. Basically you just do what you > did before to access (not create) the device, just=20 > with a (potentially) different device identifier. >=20 > As to preventing partition loss, make a sector-wise > backup copy, e.g. with dd or dd_rescue before risking it. >=20 > Arno >=20 > On Tue, Aug 11, 2009 at 11:25:16PM +0200, RaMaier@gmx.de wrote: > > Hi Hannes, > > in the documents I keep. I found that I had encrypted /dev/sda2. The > procedure I recorded was: > > umount /dev/sda2 > > cryptsetup luksFormat /dev/sda2 > > cryptsetup luksOpen /dev/sda2 tresor > > mkfs.ext3 /dev/mapper/tresor > > mount /dev/mapper/tresor /tresor > >=20 > > What will happen if I repeat the steps ? > > Should I just leave the mkfs.ext3 out ? > > Would I be able to access my old data again ? > > What does lufsFormat really do ? Format the partition ? > > As I staded the data is pretty valuable to me. > >=20 > > thanks for your help. > > Best regards > > Rainer > >=20 > >=20 > > -------- Original-Nachricht -------- > > > Datum: Tue, 11 Aug 2009 16:01:56 +0200 > > > Von: Hannes Erven > > > An: Rainer Maier > > > CC: dm-crypt@saout.de > > > Betreff: Re: [dm-crypt] reinstallation > >=20 > > > Hi Rainer, > > >=20 > > >=20 > > > > How can I reinstall LUKS on my new Debian (Lenny)? > > >=20 > > > I guess the debian (and thus cryptsetup) installations on your old > > > machine weren't that up to date, right? > > >=20 > > > With the new debian lenny, you don't need to install anything: LUKS is > > > already included in the default cryptsetup package you should already > > > have installed (http://packages.debian.org/lenny/cryptsetup ). > > >=20 > > > >>From http://code.google.com/p/cryptsetup/: > > > "The former version of cryptsetup only had low-level operations for > > > dm-crypt ready, and around version cryptsetup-luks 1.0.5 was renamed > to > > > be the official version of cryptsetup. " > > >=20 > > > You still might have to change your old scripts, if you have some, to > > > just call cryptsetup instead of cryptsetup-luks . > > >=20 > > >=20 > > > HTH, best regards > > >=20 > > > -hannes > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > dm-crypt mailing list > > > dm-crypt@saout.de > > > http://www.saout.de/mailman/listinfo/dm-crypt > >=20 > > --=20 > > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 > - > > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser > > _______________________________________________ > > dm-crypt mailing list > > dm-crypt@saout.de > > http://www.saout.de/mailman/listinfo/dm-crypt > >=20 >=20 > --=20 > Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: > arno@wagner.name=20 > GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 > 338F > ---- > Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans >=20 > If it's in the news, don't worry about it. The very definition of=20 > "news" is "something that hardly ever happens." -- Bruce Schneier=20 --=20 Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f=FCr nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02