From: tesla1@gmx.net
To: dm-crypt@saout.de
Subject: [dm-crypt] Formated Device
Date: Tue, 01 Jun 2010 22:58:36 +0200 [thread overview]
Message-ID: <20100601205836.21340@gmx.net> (raw)
Hi,
you probably receive often such mails: How can I rescue my data?
Here is what happened:
I have (had) an encrypted harddisk (1TB). I can't remember whether I encrypted the whole block device or the partition on it. Now I accidently formatted the disk as msdos filesystem. Again I don't know whether it was the block device or just the partition. The ouput of fdisk -l looks like this:
root@arpa:~# fdisk -l /dev/sdb
Platte /dev/sdb: 1000.2 GByte, 1000204886016 Byte
255 Köpfe, 63 Sektoren/Spuren, 121601 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x0006044c
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 * 1 121601 976760001 c W95 FAT32 (LBA)
A long time ago when I destroyed the partition table of an unencrypted block device I just created a new one with the same parameters and then had access to the complete filesystem again with no data loss.
What will happen if I recreate the encrypted harddisk with
cryptsetup -c aes-xts-plain -s 512 luksFormat /dev/sdb
which is the same command I used to encrypt the disk before? Can I rescue the data that way?
Are there any other possibilities under these circumstances?
The fact that the 1TB disk is the largest one I own doesn't make it easy to do experiments.
Thank you in advance!
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
next reply other threads:[~2010-06-01 20:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 20:58 tesla1 [this message]
2010-06-01 21:56 ` [dm-crypt] Formated Device Christoph Anton Mitterer
2010-06-01 23:13 ` Arno Wagner
2010-06-02 22:13 ` tesla1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100601205836.21340@gmx.net \
--to=tesla1@gmx.net \
--cc=dm-crypt@saout.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.