En-tête GPT de disque dur corrompu


0

J'ai remplacé le disque dur d'origine de mon Mac et j'essaie maintenant de l'utiliser comme disque dur externe avec un boîtier. Cependant, j'ai rencontré le problème ci-dessous et je ne peux plus accéder aux données de ce disque.

Axiom:~ migara$ sudo gpt show -l /dev/disk3
    start        size  index  contents
        0           1         PMBR
        1  1465149167 

Axiom:~ migara$ sudo gdisk /dev/disk3
GPT fdisk (gdisk) version 1.0.1

Caution: invalid backup GPT header, but valid main header;
regenerating backup header from main header.

Caution! After loading partitions, the CRC doesn't check out! Warning!
Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged

**************************************************************************** 
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT,
but disk verification and recovery are STRONGLY recommended.
****************************************************************************

Command (? for help): p
Disk /dev/disk3: 1465149168 sectors, 698.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): BD148DB7-177A-4219-9CA1-F7C2884DB38B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1465149134
Partitions will be aligned on 8-sector boundaries
Total free space is 262157 sectors (128.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              40          409639   200.0 MiB   EF00  EFI System Partition
   2          409640       732144615   348.9 GiB   AF00  Customer
   3       732144616       733414151   619.9 MiB   AB00  Recovery HD
   4       733414152      1464886983   348.8 GiB   AF00  Macintosh HD 2 
  25       183143645               6   16.0 EiB    FFFF  TEST
  57           51205        91518076   43.6 GiB    AF00
  58        91518077        91676768   77.5 MiB    AF00  

Command (? for help): q
Axiom:~ migara$ diskutil list /dev/disk3
/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *750.2 GB   disk3
   1:                       0xEE                         93.8 GB    disk3s1

Quelqu'un pourrait-il m'aider s'il vous plaît? (@klanomath)


J'ai toujours voulu un disque 16 Bei. La fin de tous les goulots d'étranglement de stockage. ;-)
klanomath

Veuillez procéder comme suit: démontez le disque et dd les 34 premiers et les 33 derniers blocs du disque et postez-le quelque part (git / pastebin / cloud). 1. sudo dd if=/dev/disk3 of=/Users/your_user_name/Desktop/1stgpt.raw bs=512 count=34 2 sudo dd if=/dev/disk3 of=/Users/your_user_name/Desktop/2ndgpt.raw skip=1465149135 bs=512 count=33
klanomath

Réponses:


1

Merci beaucoup de l'avoir jeté. J'ai réussi à réparer cela en créant à nouveau des partitions.

Je pourrais trouver les GUID pour chaque partition avec gdisk

Axiom:~ migara$ sudo gdisk /dev/disk3
GPT fdisk (gdisk) version 1.0.1

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Caution! After loading partitions, the CRC doesn't check out!
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

Command (? for help): i
Partition number (1-58): 1
Partition GUID code: C12A7328-F81F-11D2-BA4B-00A0C93EC93B (EFI System)
Partition unique GUID: 809BE30A-C34D-46BF-9135-545BCA0367F4
First sector: 40 (at 20.0 KiB)
Last sector: 409639 (at 200.0 MiB)
Partition size: 409600 sectors (200.0 MiB)
Attribute flags: 0000000000000000
Partition name: 'EFI System Partition'

Puis créez des partitions avec gpt.

Axiom:~ migara$ sudo gpt add -b 40 -i 1 -s 409600 -t C12A7328-F81F-11D2-BA4B-00A0C93EC93B disk3
disk3s1 added
Axiom:~ migara$ sudo gpt add -b 409640 -i 1 -s 731734976 -t 48465300-0000-11AA-AA11-00306543ECAC disk3
gpt add: disk3: error: entry at index 1 is not free
Axiom:~ migara$ sudo gpt add -b 409640 -i 2 -s 731734976 -t 48465300-0000-11AA-AA11-00306543ECAC disk3
disk3s2 added
Axiom:~ migara$ diskutil unmountDisk disk3
Unmount of all volumes on disk3 was successful
Axiom:~ migara$ sudo gpt add -b 732144616 -i 3 -s 1269536 -t 426F6F74-0000-11AA-AA11-00306543ECAC disk3
disk3s3 added
Axiom:~ migara$ diskutil unmountDisk disk3
Unmount of all volumes on disk3 was successful
Axiom:~ migara$ sudo gpt add -b 733414152 -i 4 -s 731472832 -t 48465300-0000-11AA-AA11-00306543ECAC disk3
disk3s4 added
Axiom:~ migara$ diskutil unmountDisk disk3
Unmount of all volumes on disk3 was successful

Merci encore!

En utilisant notre site, vous reconnaissez avoir lu et compris notre politique liée aux cookies et notre politique de confidentialité.
Licensed under cc by-sa 3.0 with attribution required.