I lent my hard drive to a friend and he has formatted it as he couldn't get his PC to recognise it. I have no Time Machine backUp. Is there any way of recovering this data?
First step, use a low level tool like dd to make an image of the drive as it exists now, and then stop using the drive. Every second that drive spends connected to a computer (especially a Mac) is a chance for something new to be written to it on top of data you want to recover. All of your recovery attempts should be performed on the image that you make.
Once you have that image, there are a lot of tools you can try to use.
TestDisk can recover the partition table if that was overwritten. If you had multiple partitions, restoring the table will likely magically and immediately "unformat" all except the first one, because all their metadata will still be intact.
The next thing you want to try depends on the filesystem each (or the only) partition had. There are tools explicitly made for unformatting HFS+, various types of FAT, ext2, etc.
If that fails, or even if it doesn't, the final step is to use a tool that will search through the entire drive, sector by sector, and try to put files back together based on their headers. This is prone to failure in cases of fragmentation, but can often recover things that other methods cannot (including deleted files, fyi). I recommend PhotoRec. You might also try some of the Mac-specific tools covered in this article.
Yes you can recover a lot.
Here is how to proceed. Open a Terminal or
If your external disk is plugged, run
Let's say it is
Mount it back but read-only:
From now on, your damaged external disk can't be corrupted by OS X
Make a disk image of your damaged disk with Disk Utility, and try any software you want on this safe copy.
protected by Community♦ Oct 16 '14 at 9:46
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?