Re: Formated Device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > you probably receive often such mails: How can I rescue my data?
> 
> Indeed. Short answer if the LUKS header is damaged, you typically 
> cannot (in the cryptographically strong sense).

Thank you for your helpful answer you gave anyway.

> Finding the LUKS header is not that hard, I described it some time
> ago on this list. 

Good point.

Just browse tha archives, or look at the header
> fedinition, there is a magic number in there suitable for searching.

I couldn't find the archives, that's why I wrote a new mail. Now I found it after clicking a link that I got after the subscription[1], after that clicking on "Overview of all saout.de mailing lists" in the lower left corner, after that on "dm-crypt". Sorry, that's too obvious, I should have found that earlier.

> If you care for that data, get an 1.5TB or 2 TB disk before messing
> with this any further and use that disk to make a full, sector-level
> backup.

I could do some foo with the first few sectors. My sector size is usually 512 Bytes. Here is how they look like:

root@arpa:~# dd if=/dev/sdb of=block.img bs=512 count=260
260+0 Datensätze ein
260+0 Datensätze aus
133120 Bytes (133 kB) kopiert, 0,0174116 s, 7,6 MB/s
root@arpa:~# hexdump block.img 
0000000 b8fa 1000 d08e 00bc b8b0 0000 d88e c08e
0000010 befb 7c00 00bf b906 0200 a4f3 21ea 0006
0000020 be00 07be 0438 0b75 c683 8110 fefe 7507
0000030 ebf3 b416 b002 bb01 7c00 80b2 748a 8b01
0000040 024c 13cd 00ea 007c eb00 00fe 0000 0000
0000050 0000 0000 0000 0000 0000 0000 0000 0000
*
00001b0 0000 0000 0000 0000 044c 0006 0000 0180
00001c0 0001 fe0c ffff 003f 0000 5982 7470 0000
00001d0 0000 0000 0000 0000 0000 0000 0000 0000
*
00001f0 0000 0000 0000 0000 0000 0000 0000 aa55
0000200 0000 0000 0000 0000 0000 0000 0000 0000
*
0020000 d29d 5309 832c e806 74d8 c9e4 95f3 9521
0020010 914c 01bd 2fb1 0fd8 cdb8 dacd 84d1 c210
0020020 9c4a a1ce 4784 a4d1 8f5c ce60 3d59 cb62
...
[* STAR stands for repeat last line]

and 
root@arpa:~# dd if=/dev/sdb1 of=partition.img bs=512 count=100
100+0 Datensätze ein
100+0 Datensätze aus
51200 Bytes (51 kB) kopiert, 0,0112693 s, 4,5 MB/s
root@arpa:~# hexdump partition.img 
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0018200 d29d 5309 832c e806 74d8 c9e4 95f3 9521
...
=>1581056 Bytes are empty.
 
Something tells me there is no LUKS header any more (no LUKS MAGIC L). So I am the happy owner of an empty 1024GByte backup medium now! 

Again, thanks for your help.

[1] http://www.saout.de/mailman/options/dm-crypt/
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt



[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux