Data recovery for OS X

15,621

Solution 1

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.

Solution 2

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.

Share:
15,621

Related videos on Youtube

josh3736
Author by

josh3736

Howdy. Check out my GitHub or my careers page if you'd like to know more about my experience.

Updated on September 17, 2022

Comments

  • josh3736
    josh3736 almost 2 years

    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?

  • josh3736
    josh3736 over 13 years
    External drives cost money; using software to copy to my existing file server is free. Also, taking the hard drive out of a MacBook Pro voids the warranty, which means that is not an option.
  • Nisba
    Nisba over 6 years
    does this work also with APFS?