ext. HDD - neue Partitionstabelle?

TestDisk benutzen um das Dateisystem zu reparieren
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
bsa66
Posts: 4
Joined: 01 Jun 2015, 18:23

ext. HDD - neue Partitionstabelle?

#1 Post by bsa66 »

Hallo,

seit zwei Tagen komme ich mit meiner HDD nicht weiter, und hoffe daher, dass ihr mir hier helfen könnt.

Folgende Situation:
Das Medium ist eine 4TB externe HDD, angeschlossen über USB3. Auf der Platte dürften sich in etwa 2.5 bis 3 TB Daten befinden.
Als ich einen USB-Stick mit dd formatieren wollte, ist mir ein klitzekleiner (folgenschwerer) Fehler unterlaufen, ich habe als outputfile hdb (die Platte) anstatt hdc (den Stick) eingegeben, ohne es vorher zu prüfen. dd dürfte maximal 30 Sekunden gelaufen sein, da ich nach dem Drücken von Enter bemerkt habe, dass die LED der Platte anfängt zu blinken. Also habe ich per Strg+X den Terminal-Prozess sofort beendet. Das war am Samstag Abend.

Mittlerweile habe ich so einige Suchen durchlaufen lassen, auch mit DeeperAnalysis, bisher leider komplett ohne Erfolg. Und wir immer grade auffällt, scheint es, dass die Log's überschrieben werden.
Da ich nach zwei mal durchlaufen der Suche für Intel-Partitionen kein Glück hatte, und das testdisk sowieso immer EFI/GPT "vorschlug" (vorwählte), versuche ich es grade mit dem Durchlauf und bin bei Cylinder 1074/60799.

Unter den beiden ersten Suchläufen (inkl. DeeperAnalysis) wurde recht früh immer eine *-Partition (Boot) mit der Bezeichnung Linux (??) gefunden, sowie zwei BadSectors. Einmal FAT16 < FAT32 und einmal noch eine FAT32. Alle drei konnte ich als Laie nicht wiederherstellen.

Die Daten müssen auf der Platte ja sein, ich kann sie aber nach drücken von P nicht sehen bzw. werden mir keine angezeigt.


Würde mich wirklich freuen, wenn ihr mir sagt, wie ich da mal besser rangehen kann...

Grüße
BSA66


PS: Wenn ich PhotoRec irgendwie umgehen kann, würde mich das echt sehr freuen. Wie gesagt, bis auf die ersten Zylinder müssten alle Daten auf der Platte noch ganz normal beschrieben sein, die Bits also die auf 1 stehen sollten, dürften also auch auf 1 stehen, da dd sie ja gar nicht erreichen konnte. Im EFI/GPT Suchlauf wurde mir übrigens ein ReadError auf 73 angezeigt.
Den Teil des Logs poste ich am besten einfach schonmal...

Code: Select all


Mon Jun  1 19:13:51 2015
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.16.0-4-amd64 (#1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24)) x86_64
Compiler: GCC 4.9
Compilation date: 2014-10-19T15:35:24
ext2fs lib: 1.42.12, 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
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 - Hitachi HDS721010CLA332, S/N:JP2940HQ3VEWNH, FW:JP4OA3EA
Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63, sector size=4096 - Seagate Expansion Desk, FW:0604

Partition table type default to EFI GPT
Disk /dev/sdb - 4000 GB / 3726 GiB - Seagate Expansion Desk
Partition table type: EFI GPT

Interface Advanced
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.

Interface Advanced
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.
New options :
 Dump : No
 Align partition: Yes
 Expert mode : Yes

Interface Advanced
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.

Analyse Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.
Current partition structure:
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.


Und hier zusätzlich noch einmal einen Screenshot vom Terminal:
Attachments
Bildschirmfoto-1.png
Bildschirmfoto-1.png (36.86 KiB) Viewed 3739 times

bsa66
Posts: 4
Joined: 01 Jun 2015, 18:23

Re: ext. HDD - neue Partitionstabelle?

#2 Post by bsa66 »

Update
Das Log vom EFI-GPT-Durchlauf gestern:

Code: Select all


Mon Jun  1 19:13:51 2015
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.16.0-4-amd64 (#1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24)) x86_64
Compiler: GCC 4.9
Compilation date: 2014-10-19T15:35:24
ext2fs lib: 1.42.12, 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
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 - Hitachi HDS721010CLA332, S/N:JP2940HQ3VEWNH, FW:JP4OA3EA
Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63, sector size=4096 - Seagate Expansion Desk, FW:0604

Partition table type default to EFI GPT
Disk /dev/sdb - 4000 GB / 3726 GiB - Seagate Expansion Desk
Partition table type: EFI GPT

Interface Advanced
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.

Interface Advanced
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.
New options :
 Dump : No
 Align partition: Yes
 Expert mode : Yes

Interface Advanced
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.

Analyse Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.
Current partition structure:
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.

search_part()
Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63
file_pread(5,2,buffer,1188898(74/1/26)) read err: Eingabe-/Ausgabefehler
file_pread(5,1,buffer,1188898(74/1/26)) read err: Eingabe-/Ausgabefehler
file_pread(5,3,buffer,1188897(74/1/25)) read err: Partial read
file_pread(5,3,buffer,1188896(74/1/24)) read err: Partial read
file_pread(5,3,buffer,1188898(74/1/26)) read err: Eingabe-/Ausgabefehler
file_pread(5,2,buffer,1188898(74/1/26)) read err: Eingabe-/Ausgabefehler
file_pread(5,2,buffer,1188898(74/1/26)) read err: Eingabe-/Ausgabefehler
file_pread(5,1,buffer,1188898(74/1/26)) read err: Eingabe-/Ausgabefehler
file_pread(5,3,buffer,1188898(74/1/26)) read err: Eingabe-/Ausgabefehler
file_pread(5,1,buffer,1188898(74/1/26)) read err: Eingabe-/Ausgabefehler
check_FAT: number of bytes per sector mismatches 512 (FAT) != 4096 (HD)
check_FAT: number of bytes per sector mismatches 512 (FAT) != 4096 (HD)
check_FAT: Unusual media descriptor (0xf0!=0xf8)
check_FAT: number of bytes per sector mismatches 512 (FAT) != 4096 (HD)
check_FAT: number of bytes per sector mismatches 512 (FAT) != 4096 (HD)
check_FAT: number of bytes per sector mismatches 512 (FAT) != 4096 (HD)
check_FAT: number of bytes per sector mismatches 512 (FAT) != 4096 (HD)

recover_EXT2: s_block_group_nr=0/21, s_mnt_count=9/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8048
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 707840
recover_EXT2: part_size 707840
     MS Data                  3901062    4608901     707840
     ext4 blocksize=4096 Large file Sparse superblock, 2899 MB / 2765 MiB
check_FAT: number of bytes per sector mismatches 512 (FAT) != 4096 (HD)

recover_EXT2: s_block_group_nr=0/25, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 819200
recover_EXT2: part_size 819200
     MS Data                  4624262    5443461     819200
     ext4 blocksize=4096 Large file Sparse superblock, 3355 MB / 3200 MiB
check_FAT: Unusual media descriptor (0xf0!=0xf8)
check_FAT: number of bytes per sector mismatches 512 (FAT) != 4096 (HD)
SIGINT detected! TestDisk has been killed.


Dann habe ich über Nacht noch folgenden Intel-Suchlauf durchlaufen lassen, heute Vormittag war er zu ende, seitdem läuft Testdisk auf DeeperAnalysis. Hier also das Log von gestern Nacht zu heute:

Code: Select all

Mon Jun  1 20:01:48 2015
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.16.0-4-amd64 (#1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24)) x86_64
Compiler: GCC 4.9
Compilation date: 2014-10-19T15:35:24
ext2fs lib: 1.42.12, 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
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 - Hitachi HDS721010CLA332, S/N:JP2940HQ3VEWNH, FW:JP4OA3EA
Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63, sector size=4096 - Seagate Expansion Desk, FW:0604

Partition table type default to EFI GPT
Disk /dev/sdb - 4000 GB / 3726 GiB - Seagate Expansion Desk
Partition table type: Intel

Interface Advanced
New options :
 Dump : No
 Align partition: Yes
 Expert mode : Yes
Write error: Can't write new MBR code.

Interface Advanced

Analyse Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63
Current partition structure:
No partition is bootable

search_part()
Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63

recover_EXT2: s_block_group_nr=0/21, s_mnt_count=7/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8048
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 707840
recover_EXT2: part_size 707840
     Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB
BAD_RS LBA=2750415189 6372499
check_FAT: can't read FAT boot sector
check_part_i386 failed for partition type 04
     FAT16 <32M           171205 108 61 348742 160 51 2852135172
This partition ends after the disk limits. (start=2750415189, size=2852135172, end=5602550360, disk end=976754645)
BAD_RS LBA=1549509817 1830417
check_FAT: can't read FAT boot sector
check_part_i386 failed for partition type 0B
     FAT32                96452 133 59 213240  61  1 1876194627
This partition ends after the disk limits. (start=1549509817, size=1876194627, end=3425704443, disk end=976754645)
Search for partition aborted
Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (4000 GB / 3726 GiB) seems too small! (< 22 TB / 20 TiB)
The following partitions can't be recovered:
     FAT32                96452 133 59 213240  61  1 1876194627
     FAT16 <32M           171205 108 61 348742 160 51 2852135172

Results
   * Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB


dir_partition inode=2
   * Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB
ext2fs_dir_iterate failed with error 1.
Directory /
Can't open backup.log file: Datei oder Verzeichnis nicht gefunden
interface_load
Can't open backup.log file: Datei oder Verzeichnis nicht gefunden
interface_load
Can't open backup.log file: Datei oder Verzeichnis nicht gefunden
interface_load
Can't open backup.log file: Datei oder Verzeichnis nicht gefunden
interface_load
Can't open backup.log file: Datei oder Verzeichnis nicht gefunden
interface_load
Change partition type:
   P Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB
Can't open backup.log file: Datei oder Verzeichnis nicht gefunden
interface_load
Can't open backup.log file: Datei oder Verzeichnis nicht gefunden
interface_load

interface_write()
 1 P Linux                  264  56 49   308  72 20     707840
write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
SIGINT detected! TestDisk has been killed.

Der aktuelle DeeperAnalysis (intel) ist erst bei 9601/60799 Cylindern...15%


Edit: Die drei Screenshots sind vom letzten Log (gestern Nacht zu heute).
Attachments
testdisk-log_01062015-002.png
testdisk-log_01062015-002.png (27.39 KiB) Viewed 3733 times
testdisk-log_01062015-001.png
testdisk-log_01062015-001.png (39.36 KiB) Viewed 3733 times
testdisk-log_01062015-000.png
testdisk-log_01062015-000.png (35.21 KiB) Viewed 3733 times

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

Re: ext. HDD - neue Partitionstabelle?

#3 Post by Fiona »

Der erst Cylinder ist bei Intel MBR ca. 8 MB groß und kann sicherlich vile verursachen.
MBR weg, der Bootsektor oder Superblock und der Anfang des Dateisystems in der Partition.
Das Menü Advanced bring nur etwas, wenn sich deine Partition in der Partitionstabelle befindet.
Gegenwärtig ist die Meldung:
Analyse Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.
Current partition structure:
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.
Weißt du wieviel Partitionen auf der Platte waren und auch das Dateisystem wie ext4 etc..
Bei Linux wäre es ein Versuch Deeper Search und Partitionen anhand eines Backups vom Superblock suchen zu lassen?.
Aber wenn das Dateisystem beschädigt ist, würde nur Datenrettungssoftware helfen.
Weiß ich aber noch nicht.
Info zum Backup vom Superblock:
http://www.cgsecurity.org/wiki/Sicherun ... cks_finden
Wichtig ist der Hinweis das das Backup vom Superblock in Gruppen über das Dateisystem verteilt ist und eine Partition mit der richtigen Länge schon ohne vollen Scan gefunden werden kann.
Würde Zeit sparen.

Fiona

bsa66
Posts: 4
Joined: 01 Jun 2015, 18:23

Re: ext. HDD - neue Partitionstabelle?

#4 Post by bsa66 »

Es sollte eigentlich nur eine einzige Partition sein und zwar im Format FAT32, da die Platte hin und wieder auch an Windows-Rechnern hängt.
Das mit der Suche nach den Kopien vom Superblock werde ich gleich ausprobieren, jedoch stehts da für ext2 /3, nutzt FAT32 auch diese verteilten Sicherungskopien?

Ich probier das gleich mal mit der Suche nach den Kopien vom Superblock, trotz FAT32 - ein Versuch ist es mir wert.

Nebenbei ist auch der letzte Suchlauf (intel, deeper analysis) durch, hier das log:

Code: Select all

Tue Jun  2 02:15:27 2015
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.16.0-4-amd64 (#1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24)) x86_64
Compiler: GCC 4.9
Compilation date: 2014-10-19T15:35:24
ext2fs lib: 1.42.12, 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
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 - Hitachi HDS721010CLA332, S/N:JP2940HQ3VEWNH, FW:JP4OA3EA
Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63, sector size=4096 - Seagate Expansion Desk, FW:0604

Partition table type (auto): Intel
Disk /dev/sdb - 4000 GB / 3726 GiB - Seagate Expansion Desk
Partition table type: Intel

Interface Advanced
Geometry from i386 MBR: head=73 sector=20
 1 P Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB


dir_partition inode=2
 1 P Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB
ext2fs_dir_iterate failed with error 1.
Directory /
New options :
 Dump : No
 Align partition: Yes
 Expert mode : Yes
Write error: Can't write new MBR code.

Interface Advanced
Geometry from i386 MBR: head=73 sector=20
 1 P Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB


dir_partition inode=2
 1 P Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB
ext2fs_dir_iterate failed with error 1.
Directory /

Analyse Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63
Geometry from i386 MBR: head=73 sector=20
Current partition structure:
 1 P Linux                  264  56 49   308  72 20     707840
No partition is bootable

search_part()
Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63

recover_EXT2: s_block_group_nr=0/21, s_mnt_count=7/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8048
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 707840
recover_EXT2: part_size 707840
     Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB
BAD_RS LBA=2750415189 6372499
check_FAT: can't read FAT boot sector
check_part_i386 failed for partition type 04
     FAT16 <32M           171205 108 61 348742 160 51 2852135172
This partition ends after the disk limits. (start=2750415189, size=2852135172, end=5602550360, disk end=976754645)
BAD_RS LBA=1549509817 1830417
check_FAT: can't read FAT boot sector
check_part_i386 failed for partition type 0B
     FAT32                96452 133 59 213240  61  1 1876194627
This partition ends after the disk limits. (start=1549509817, size=1876194627, end=3425704443, disk end=976754645)
Disk /dev/sdb - 4000 GB / 3726 GiB - CHS 60800 255 63
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (4000 GB / 3726 GiB) seems too small! (< 22 TB / 20 TiB)
The following partitions can't be recovered:
     FAT32                96452 133 59 213240  61  1 1876194627
     FAT16 <32M           171205 108 61 348742 160 51 2852135172

Results
   * Linux                  264  56 49   308  72 20     707840
     ext4 blocksize=4096 Large file Sparse superblock Recover, 2899 MB / 2765 MiB

interface_write()
 1 P Linux                  264  56 49   308  72 20     707840
Attachments
testdisk-log_deep-020615.png
testdisk-log_deep-020615.png (37.61 KiB) Viewed 3725 times
testdisk-log_deep-02062015-000.png
testdisk-log_deep-02062015-000.png (41.06 KiB) Viewed 3725 times

bsa66
Posts: 4
Joined: 01 Jun 2015, 18:23

Re: ext. HDD - neue Partitionstabelle?

#5 Post by bsa66 »

Das mit dem Superblock funktioniert nicht.



Ich weiß auch gar nicht, ob ich hier ins richtige Unterforum geschrieben hab...die Partition ist weg, das hat das Dateisystem geschädigt - das war jedenfalls meine Logik.

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

Re: ext. HDD - neue Partitionstabelle?

#6 Post by Fiona »

Thema kann ich im Fall verschieben.
Bei FAT32 fängt die Partition beim Bootsektor an und das Backup vom Bootsektor währe Sektor 6 in der Partition.
Sieht leider überschrieben aus.
Kann wohl davon ausgegenagen werden das durch dd in das Dateisystem geschrieben wurde und beschädigt ist.
Im Fall würde Datenrettungssoftware helfen.
Hattest du PhotoRec probiert?
PhotoRec behält Dateinamen und Ordnerstruktur nicht bei.
Ansonsten würde kommerzielle Datenrettungssoftware helfen.

Fiona

Locked