Friday, February 3, 2017

macos - Recovering data from a lost/deleted HFS partition in Mac OS X

I have a 2TB hard drive with 2 partitions. It got partition by a program into 5gb accidentally.


I tried using Disk Drill Pro to recover the lost partitions and it could see it but could not rebuild because of the existing 5GB. So, I deleted the 5GB partition with disk utility tried again with Disk Drill Pro and I could not see the lost partition to rebuild.


I used TestDisk earlier to get the maps of each partition. I used pdisk’s terminal and partitioned it to the maps provided by TestDisk. Now the first partition 1.8gb, won’t mount on disk utility!


What should I do? Are my files gone? Should I repair the catalog file with Disk Utility?


Here are the disk details
With the 5GB;


Partition map ( 2048 byte block ) on /dev/
#: type name length base ( size )
1: Apple_partition_map Apple 15 @ 1
2: Apple_HFS disk image 2637456 @ 16 ( 5.0G)
3: Apple_Free 3 @ 2637472
Device block size=2048, Number of Blocks=2637475 ( 5.0G)
Device Type=0x0 DeviceId=0x0

After I deleted the 5GB using Disk Utility:


Partition map ( 512 byte block ) on /dev/rdisk2/
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_Free. 3906363456 @ 64 ( 1.8T)
Device block size=512, Number of Blocks=3906963456 (1.8T)
Device Type=0x0 DeviceId=0x0

After changing the map to TestDisk’s using pdisk


Partition map ( 512 byte block ) on /dev/rdisk2/
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_Free Extra 448 @ 64
3: Apple_HFS My 3882374848 @ 512 ( 1.8T)
4: Apple_Free 24588096 @ 3882375360 ( 11.7G)
Device block size=512, Number of Blocks=3906963456 (1.8T)
Device Type=0x0 DeviceId=0x0

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...