Data recovery for OS X

I've got a Mac that won't boot and I'd like to recover whatever data I can before wiping the hard drive and reinstalling. I'm looking for something similar to TRK (which is Windows-centric) — boot from CD, mount the hard drive, and copy to a network share.

I just noticed TRK does appear to support HFS+; has anyone had success with this?


Solution 1:

You could try using PhotoRec, which is free, open source, and has some similar capabilities. It's on the Knoppix Live CD along with TestDisk.

Solution 2:

I ultimately did use TRK, which does support HFS+. I had to do a fair amount of Googling to get mounting to work, but I ended up with this:

# mount -r -t hfsplus /dev/sda2 /sda2

-r mounts the drive read-only (to avoid any further damage to data) and -t hfsplus tells it you're mounting a HFS+ partition. (hfsplus didn't show up in the man page or with man -? – I spent at least half an hour figuring that one out.)

I then mounted a shared drive on a Windows server.

# mount -t cifs -o username=**** //server-ip/share /mnt0

It will ask for your password and mount the share.

Since my Windows server runs Windows Server 2008, I had to allow unsigned SMB connections. (I was getting the error smb signing is mandatory and we have disabled it.) Fire up regedit and navigate to

 HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

and change requiresecuritysignature to 0.