[SOLVED] Wiederherstellung einer verschlüsselten Partition

TestDisk benutzen um verlorene Partitionen wiederherzustellen
Forum rules
Your help is welcome: there are currently few answers or none to most message posted in the German forum!
If you want to post a request for help, please consider using the English forum.
Locked
Message
Author
Jeff
Posts: 9
Joined: 04 Jun 2014, 09:32

[SOLVED] Wiederherstellung einer verschlüsselten Partition

#1 Post by Jeff »

Hallo liebe Leute,

ich habe schon öfters Probleme mit verschwundenen Partitionen bzw. Disks gehabt und konnte sie bis jetzt halbwegs immer lösen. Nun streikt jedoch meine Backup-HD während einer Neuinstallation meines PCs und ich habe somit - hoffentlich nur vorläufig - keinen Zugriff auf wichtige Dateien (primäre HD beschädigt, darum die Neuinstallation mit neuem HD).

Die betroffene HD ist extern per USB verbunden und 1 TB groß. Ich habe damals eine unformatierte Partition herstellt, die genauso groß war wie die HD (also 1TB) und sie mittels Truecrypt (keine Ahnung welche Version, aber mit der 7.1a hat das Entschlüsseln und öffnen noch funktioniert; OS: Ubuntu 12.04 oder älter) verschlüßelt (Passwort weiß ich noch). Wenn ich die HD verbinde, wird mir jetzt keine Partition angezeigt, weder von Truecrypt noch von sudo fdisk -l oder gparted: Sie ist einfach weg.
Da ich nichts seit der letzten Benutzung gemacht habe, müsste alles noch da sein. Ich habe testdisk gestartet und das ist der Output (betroffene HD ist /dev/sdb):

Code: Select all


Wed Jun  4 00:32:01 2014
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.13.0-24-generic (#46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014) x86_64
Compiler: GCC 4.8
Compilation date: 2013-10-29T01:29:29
ext2fs lib: 1.42.9, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       1953525168 sectors
/dev/sda: user_max   1953525168 sectors
/dev/sda: native_max 1953525168 sectors
/dev/sda: dco        1953525168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 1 sectors, sector size=512
Hard disk list
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD10EZEX-00BN5A0, S/N:WD-WCC3F3643023, FW:01.01A01
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WD 10EADS External, FW:1.75

Partition table type default to Intel
Disk /dev/sdb - 1000 GB / 931 GiB - WD 10EADS External
Partition table type: None

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Current partition structure:
   P Unknown                  0   0  1 121601  80 63 1953525168

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63

block_group_nr 625

recover_EXT2: "e2fsck -b 20480000 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=625/7452, s_mnt_count=161/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 244190000
recover_EXT2: part_size 1953520000
     ext4                     0   0 62 121600 254 59 1953520000 [HD_1TB]
     ext4 blocksize=4096 Large file Sparse superblock Backup superblock, 1000 GB / 931 GiB

Results
   P ext4                     0   0 62 121600 254 59 1953520000 [HD_1TB]
     ext4 blocksize=4096 Large file Sparse superblock Backup superblock, 1000 GB / 931 GiB

interface_write()
   P ext4                     0   0 62 121600 254 59 1953520000 [HD_1TB]
 
Write isn't available because the partition table type "None" has been selected.

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Current partition structure:
   P Unknown                  0   0  1 121601  80 63 1953525168

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Search for partition aborted

Results

interface_write()
 
No partition found or selected for recovery

Interface Advanced
   P Unknown                  0   0  1 121601  80 63 1953525168
Change partition type:
   P ext4                     0   0  1 121601  80 63 1953525168
search_superblock

   P ext4                     0   0  1 121601  80 63 1953525168
Can't open filesystem. Filesystem seems damaged.
search_superblock

Interface Advanced
   P Unknown                  0   0  1 121601  80 63 1953525168
Change partition type:
   P ext4                     0   0  1 121601  80 63 1953525168
search_superblock
New options :
 Dump : No
 Align partition: Yes
 Expert mode : Yes
Partition table type default to Intel
Disk /dev/sdb - 1000 GB / 931 GiB - WD 10EADS External
Partition table type: Intel

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Current partition structure:
No partition is bootable

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
BAD_RS LBA=1024805508 4594796
check_part_i386 failed for partition type 0C
     FAT32 LBA            63791  49  7 63819 182 58     458251

Results
   L FAT32 LBA            63791  49  7 63819 182 58     458251
add_ext_part_i386: max
add_ext_part_i386: min

interface_write()
 1 E extended LBA         63791   0  1 63819 254 63     465885
 5 L FAT32 LBA            63791  49  7 63819 182 58     458251

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
BAD_RS LBA=1024805508 4594796
check_part_i386 failed for partition type 0C
     FAT32 LBA            63791  49  7 63819 182 58     458251

Results
   L FAT32 LBA            63791  49  7 63819 182 58     458251
add_ext_part_i386: max
add_ext_part_i386: min

interface_write()
 1 E extended LBA         63791   0  1 63819 254 63     465885
 5 L FAT32 LBA            63791  49  7 63819 182 58     458251
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
write_all_log_i386: CHS: 63791/0/1,lba=1024802415

TestDisk exited normally.


Doch dann taucht eine zweite Partition auf, die nicht existieren sollte: Ich kann mir nicht erklären, woher die FAT32-Partition herkommt und weiß nicht, wie ich weiter vorzugehen habe.
Image
Die deep analyse läuft noch (seit über drei Stunden schon) und gefunden wurde ein invalid FAT boot sector (siehe Bild).

Image
Die Original-HD wieder zum Laufen zu bringen und die Daten von der zu retten scheint mir nicht möglich.

Ich wäre für Tipps und Vorschläge sehr dankbar.

Viele Grüße,

Jeff

EDIT:
Code mit dem neuesten Output aktualisiert.

EDIT2:
Titel geändert.

EDIT3:
Gelöst.
Last edited by Jeff on 03 Jul 2014, 16:46, edited 2 times in total.

Jeff
Posts: 9
Joined: 04 Jun 2014, 09:32

Re: superblock + boot sector error bei verschlüsselter Parti

#2 Post by Jeff »

Hier ein Update:

Testdisk 6.13 (ältere Version) findet zwar eine Partition, wenn der partition table type "None" ausgewählt ist, aber "Write" ist ja nicht verfügbar. Ändere ich den Typ des partition table, so findet Testdisk - auch nach deep search -nichts.

Vorschläge?

Code: Select all

Thu Jun  5 15:17:43 2014
Command line: TestDisk

TestDisk 6.13, Data Recovery Utility, November 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.5.0-47-generic (#71-Ubuntu SMP Tue Feb 18 23:59:30 UTC 2014) i686
Compiler: GCC 4.7
Compilation date: 2012-10-01T12:56:22
ext2fs lib: 1.42.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       976773168 sectors
/dev/sda: user_max   976773168 sectors
/dev/sda: native_max 976773168 sectors
/dev/sda: dco        976773168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - CHS 1 1 1, sector size=512
Hard disk list
Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - WDC WD5000BEVT-22A0RT0, S/N:WD-WXK1A10N3804, FW:01.01A01
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WD 10EADS External, FW:1.75
Disk /dev/mapper/cryptswap1 - 5999 MB / 5722 MiB - CHS 11718656 1 1, sector size=512
Disk /dev/dm-0 - 5999 MB / 5722 MiB - CHS 11718656 1 1, sector size=512

Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - WD 10EADS External
Partition table type: None

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Current partition structure:
   P Unknown                  0   0  1 121601  80 63 1953525168

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63

block_group_nr 625

recover_EXT2: "e2fsck -b 20480000 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=625/7452, s_mnt_count=161/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 244190000
recover_EXT2: part_size 1953520000
     ext4                     0   0 62 121600 254 59 1953520000 [HD_1TB]
     EXT4 Large file Sparse superblock Backup superblock, 1000 GB / 931 GiB

Results
   P ext4                     0   0 62 121600 254 59 1953520000 [HD_1TB]
     EXT4 Large file Sparse superblock Backup superblock, 1000 GB / 931 GiB

interface_write()
   P ext4                     0   0 62 121600 254 59 1953520000 [HD_1TB]
 
Write isn't available because the partition table type "None" has been selected.
New options :
 Dump : No
 Cylinder boundary : Yes
 Allow partial last cylinder : No
 Expert mode : Yes

Interface Advanced
   P Unknown                  0   0  1 121601  80 63 1953525168
Change partition type:
   P ext4                     0   0  1 121601  80 63 1953525168

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Current partition structure:
   P Unknown                  0   0  1 121601  80 63 1953525168

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Search for partition aborted

Results

interface_write()
 
No partition found or selected for recovery
Partition table type (auto): None
Disk /dev/sdb - 1000 GB / 931 GiB - WD 10EADS External
Partition table type: Intel

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Current partition structure:
No partition is bootable
Ask the user for vista mode
Allow partial last cylinder : No
search_vista_part: 0

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63

Results

interface_write()
 
No partition found or selected for recovery

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63

Results

interface_write()
 
No partition found or selected for recovery
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition

Interface Advanced
Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - WD 10EADS External
Partition table type: None
New options :
 Dump : No
 Cylinder boundary : Yes
 Allow partial last cylinder : No
 Expert mode : Yes

Interface Advanced
   P Unknown                  0   0  1 121601  80 63 1953525168
Change partition type:
   P ext4                     0   0  1 121601  80 63 1953525168

   P ext4                     0   0  1 121601  80 63 1953525168
Can't open filesystem. Filesystem seems damaged.
search_superblock

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Current partition structure:
   P Unknown                  0   0  1 121601  80 63 1953525168

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63

block_group_nr 625

recover_EXT2: "e2fsck -b 20480000 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=625/7452, s_mnt_count=161/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 244190000
recover_EXT2: part_size 1953520000
     ext4                     0   0 62 121600 254 59 1953520000 [HD_1TB]
     EXT4 Large file Sparse superblock Backup superblock, 1000 GB / 931 GiB

Results
   P ext4                     0   0 62 121600 254 59 1953520000 [HD_1TB]
     EXT4 Large file Sparse superblock Backup superblock, 1000 GB / 931 GiB

interface_write()
   P ext4                     0   0 62 121600 254 59 1953520000 [HD_1TB]
 
Write isn't available because the partition table type "None" has been selected.

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Wiederherstellung einer verlorenen verschlüsselten Parti

#3 Post by Fiona »

Wenn die Platte verschlüsselt war, wird auch jeder Sektor verschlüsselt.
Dann hat deine Platte keinen gültigen Partitionstabellentyp wie Intel etc.. mehr.
Wenn du die Partition wieder genauso erstellen könntest, könntest du es testen ein Backup vom Volumeheader wiederherzustellen.
Im Fall hatte Simpson474 ein Programm erstellt genannt Testcrypt, welches helfen könnte.

Viele Grüße

Fiona

Jeff
Posts: 9
Joined: 04 Jun 2014, 09:32

Re: [SOLVED] Wiederherstellung einer verschlüsselten Partiti

#4 Post by Jeff »

Die Partition wurde erfolgreich wiederhergestellt und der Zugriff auf die Daten gesichert. Der Lösungsweg ist hier beschrieben: Link zum Post

Locked