I encounter the same problem: "Function write_part_mac not implemented" with a recent macbook pro and with testdisk 7.0, running from the mac itself looking at an external harddrive (1To)
Here is the log file result, where testdisk has correctly found the partition to be repaired, but is not able to write the repair.
Your diagnostic is much welcomed.
For your information, testdisk suggested to use pdisk, which I did, writing a new partition according to testdisk results but the Mac still cannot mount properly the external HD. Running testdisk again logged the following :
Code: Select all
Mon Mar 9 23:41:49 2015
Command line: TestDisk
TestDisk 7.0-WIP, Data Recovery Utility, March 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Darwin, kernel 11.4.2 (Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.3
Compiler: GCC 4.0
Compilation date: 2015-03-09T19:49:27
ext2fs lib: 1.42.8, ntfs lib: libntfs-3g, reiserfs lib: 0.3.1-rc8, ewf lib: 20120504
Hard disk list
Disk /dev/disk0 - 500 GB / 465 GiB - 976773168 sectors (RO), sector size=512
Disk /dev/disk1 - 1000 GB / 931 GiB - 1953525168 sectors, sector size=512
Disk /dev/rdisk0 - 500 GB / 465 GiB - 976773168 sectors (RO), sector size=512
Disk /dev/rdisk1 - 1000 GB / 931 GiB - 1953525168 sectors, sector size=512
Partition table type (auto): Mac
Disk /dev/disk1 - 1000 GB / 931 GiB
Partition table type: Mac
Analyse Disk /dev/disk1 - 1000 GB / 931 GiB - 1953525168 sectors
HFS+ magic value at 263968/0/1
HFS+ magic value at 263968/0/1
Current partition structure:
1 P partition_map 1 63 63
2 P Free 64 263967 263904
3 P HFS 263968 1953525151 1953261184
4 P Free 1953525152 1953525167 16
search_part()
Disk /dev/disk1 - 1000 GB / 931 GiB - 1953525168 sectors
HFS+ magic value at 263968/0/1
HFS+ magic value at 263968/0/1
part_size 1953261184
HFS 263968 1953525151 1953261184
HFS+ blocksize=4096 + Backup, 1000 GB / 931 GiB
Results
P HFS 263968 1953525151 1953261184
HFS+ blocksize=4096 + Backup, 1000 GB / 931 GiB
interface_write()
P HFS 263968 1953525151 1953261184
Function write_part_mac not implemented
Interface Advanced
HFS+ magic value at 263968/0/1
HFS+ magic value at 263968/0/1
1 P partition_map 1 63 63
2 P Free 64 263967 263904
3 P HFS 263968 1953525151 1953261184
HFS+ blocksize=4096 + Backup, 1000 GB / 931 GiB
4 P Free 1953525152 1953525167 16
HFS_HFSP_boot_sector
3 P HFS 263968 1953525151 1953261184
HFS+ blocksize=4096 + Backup, 1000 GB / 931 GiB
HFS+ magic value at 263968/0/1
HFS+ magic value at 263968/0/1
Volume header
HFS+ OK
Backup volume header
HFS+ OK
Sectors are not identical.
New options :
Dump : No
Align partition: Yes
Expert mode : No
Interface Advanced
HFS+ magic value at 263968/0/1
HFS+ magic value at 263968/0/1
1 P partition_map 1 63 63
2 P Free 64 263967 263904
3 P HFS 263968 1953525151 1953261184
HFS+ blocksize=4096 + Backup, 1000 GB / 931 GiB
4 P Free 1953525152 1953525167 16
Analyse Disk /dev/disk1 - 1000 GB / 931 GiB - 1953525168 sectors
HFS+ magic value at 263968/0/1
HFS+ magic value at 263968/0/1
Current partition structure:
1 P partition_map 1 63 63
2 P Free 64 263967 263904
3 P HFS 263968 1953525151 1953261184
4 P Free 1953525152 1953525167 16
search_part()
Disk /dev/disk1 - 1000 GB / 931 GiB - 1953525168 sectors
HFS+ magic value at 263968/0/1
HFS+ magic value at 263968/0/1
part_size 1953261184
HFS 263968 1953525151 1953261184
HFS+ blocksize=4096 + Backup, 1000 GB / 931 GiB
Results
P HFS 263968 1953525151 1953261184
HFS+ blocksize=4096 + Backup, 1000 GB / 931 GiB
interface_write()
P HFS 263968 1953525151 1953261184
simulate write!
TestDisk exited normally.