HFS+ partition recovery
Posted: 16 May 2016, 21:41
2 hard drives in an enclosure got their partition tables corrupted, I'm guessing due to some error with the RAID controller (set on JBOD, never changed it or triggered any RAID initialization).
Both drives have a single HFS+ partition. One is non-essential, a 1 TB drive. I am testing some recovery methods on it. The following is what I've done.
I ran testdisk, which detected EFI GPT, but instructions said to use the Mac option. So, I ran the testdisk analyze tool in Mac mode, and got this:
partition: DOS_FAT_32
start: 40
end: 409639
size: 409600 [EFI]
partition: HFS
start: 578880
end: 1953432223
size: 1952853344
I then followed https://perrohunter.com/repair-a-mac-os ... ion-table/, and used pdisk to initialize a partition table, and attempted to create the partitions using the info above. It would not let me create the first one, said the base and length were not available empty space. I did create the second partition, and wrote the partition table. The drive is still not readable though.
I went back to testdisk and this time ran analyze in EFI GPT mode. The second result from above now looked like this:
partition: Mac HFS
start: 495388
end: 1953348731
size: 195283344
Running analyze in Mac mode still shows the result from earlier.
Which is the correct mode? What is the proper way to recreate the partition table, as the Mac partition table write is not supported?
Both drives have a single HFS+ partition. One is non-essential, a 1 TB drive. I am testing some recovery methods on it. The following is what I've done.
I ran testdisk, which detected EFI GPT, but instructions said to use the Mac option. So, I ran the testdisk analyze tool in Mac mode, and got this:
partition: DOS_FAT_32
start: 40
end: 409639
size: 409600 [EFI]
partition: HFS
start: 578880
end: 1953432223
size: 1952853344
I then followed https://perrohunter.com/repair-a-mac-os ... ion-table/, and used pdisk to initialize a partition table, and attempted to create the partitions using the info above. It would not let me create the first one, said the base and length were not available empty space. I did create the second partition, and wrote the partition table. The drive is still not readable though.
I went back to testdisk and this time ran analyze in EFI GPT mode. The second result from above now looked like this:
partition: Mac HFS
start: 495388
end: 1953348731
size: 195283344
Running analyze in Mac mode still shows the result from earlier.
Which is the correct mode? What is the proper way to recreate the partition table, as the Mac partition table write is not supported?