HFS Filesystem repair

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Message
Author
Lito
Posts: 83
Joined: 08 Sep 2012, 06:58

Re: HFS Filesystem repair

#11 Post by Lito »

You might like to check HomeBrew:

http://brew.sh/

Best of luck

DStall
Posts: 16
Joined: 03 Dec 2013, 17:57

Re: HFS Filesystem repair

#12 Post by DStall »

No thanks. I don't drink Pferdepisse Bier.

Lito
Posts: 83
Joined: 08 Sep 2012, 06:58

Re: HFS Filesystem repair

#13 Post by Lito »

OK.
Might be you would like something to chew meanwhile help arrives:

http://h20565.www2.hp.com/portal/site/h ... cachetoken

http://blog.jbheren.com/post/2011/02/09 ... ume-on-osx

Best of luck

DStall
Posts: 16
Joined: 03 Dec 2013, 17:57

Re: HFS Filesystem repair

#14 Post by DStall »

No thank you. You aren't helpful.

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

Re: HFS Filesystem repair

#15 Post by Fiona »

Did you run testdisk as superuser or administrator?
Some information about Mac here;
http://www.cgsecurity.org/wiki/OS_Notes ... 28Intel.29
Please don't use pdisk or anything else, because its only intended for PowerPC and not Intel-Mac.

Fiona

DStall
Posts: 16
Joined: 03 Dec 2013, 17:57

Re: HFS Filesystem repair

#16 Post by DStall »

Fiona, I ran TestDisk as Administrator and followed Step By Step instructions here -
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

I found my external drive in the log file and selected "Proceed".
TestDisk highlighted [None] Non-partitioned media, so I selected [Mac] Apple Partition Map, then ran Analyse.
I selected the partition, then pressed p as instructed to list files.
That's when TestDisk returned - "Support for this filesystem hasn't been enable during compilation"

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

Re: HFS Filesystem repair

#17 Post by Fiona »

Do you have an Intel-Mac?
Can you try it using EFI-GPT?
Partition map is only required if you have an old PowerMac.

Fiona

DStall
Posts: 16
Joined: 03 Dec 2013, 17:57

Re: HFS Filesystem repair

#18 Post by DStall »

Yes, I have an Intel MacBook Pro 8,2, early 2011.
I don't know what EFI-GPT is.

What I'm trying to determine is if TestDisk can recover a drive directory after it is damaged.

I'm looking for a way to recover a corrupted directory, as this seems to happen occasionally because I move an external drive between 2 locations. If I happen to forget to unmount the drive, or to turn it off before unplugging, then I end up with a corrupted directory. I use the drive for temporary files, so I usually have a backup, but occasionally I store some files on it that aren't backed up. The files I recently lost weren't important, so I've reformatted the drive in order to continue using it.

TechTool Pro 6 backs up the drive directory, but if it is damaged severely, then TTP 6 doesn't recognize the drive so the backup is useless.
Similarly, Disk Warrior can sometimes rebuild a directory even when TTP 6 doesn't recognize the drive, but not if the directory is too severely damaged.
Disc Rescue can recover files, but not file names, and I don't think it recovers .iso files which are mostly what I store on the external drive.

DStall
Posts: 16
Joined: 03 Dec 2013, 17:57

Re: HFS Filesystem repair

#19 Post by DStall »

I ran TestDisk again after reformatting (repartitioning) drive.
This time, TestDisk recognizes the drive as EFI and gives me instruction that drive must not be mounted.

I unmounted drive with Disk Utility. It showed an EFI System and a Mac HFS partition. I ran Analyse on EFI, then entered p to list files for EFI system, and get "No file found, filesystem may be damaged."

I did same for Mac HFS and again get "Support for this filesystem hasn't been enable during compilation."

Then I did same for >Disk /dev/disk1 - instead of Disk /dev/rdisk1 - (the other partition listing for the external hard drive) and I get same results for EFI - No file found, filesystem may be damaged.
When I run for Mac HFS - TestDisk runs a Deeper Search, but that's taking a long time
Disk /dev/disk1 - 320 GB / 298 GiB - 625142448 sectors
Analyse cylinder 43089920/625142447: 06%

regnaDkciN
Posts: 5
Joined: 01 Dec 2013, 03:21

Re: HFS Filesystem repair

#20 Post by regnaDkciN »

Here's what I have so far…
I would love to get this partition to mount on Mac osx 10.8.5
Since it says "Structure: OK" and "P Mac HFS" is green, does this suggest it's repairable?
  • TestDisk 7.0-WIP, Data Recovery Utility, October 2013
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org

    Disk /dev/rdisk1 - 3000 GB / 2794 GiB - 1565565872 sectors
    Partition Start End Size in sectors
    P EFI System 40 409639 409600 [EFI]
    >P Mac HFS 409640 1171861383 1171451744

    Structure: Ok. Use Up/Down Arrow keys to select partition.
    Use Left/Right Arrow keys to CHANGE partition characteristics:
    P=Primary D=Deleted
    Keys A: add partition, L: load backup, T: change type,
    Enter: to continue
    HFS+ blocksize=4096, 599 GB / 558 GiB

Locked