All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Formated Device
@ 2010-06-01 20:58 tesla1
  2010-06-01 21:56 ` Christoph Anton Mitterer
  2010-06-01 23:13 ` Arno Wagner
  0 siblings, 2 replies; 4+ messages in thread
From: tesla1 @ 2010-06-01 20:58 UTC (permalink / raw)
  To: dm-crypt

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-02 22:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-01 20:58 [dm-crypt] Formated Device tesla1
2010-06-01 21:56 ` Christoph Anton Mitterer
2010-06-01 23:13 ` Arno Wagner
2010-06-02 22:13   ` tesla1

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.