Couldn’t fix your OSX partition via fsck or OSX tools ? You want your data back , if so , read this guide
Most of the guides out there explains on how to get OSX86 up and running but there are very few guides out there which explains on how to recover OSX86 partition in an event of file structure corruption. Bear in mind that this guide does not cover fully if your disk starts to fail. By default OSX or your BIOS should alert you if SMART (Its a simple self-check of the device to determine if its O.K or K.O ) status shows that it is not okay.
I’ve faced couple of issues with my disk , mostly related to directory structure. I believe this is because I do not shutdown my computer properly and bam one day OSX did not boot at all. Of course , I tried the usual stuff such as booting into (single user) and tried running fsck . Of course it did show that there was an error with my partition , however it could not fix it. Thankfully I’ve managed to discover few great tools which would help to fix your disk-related issues.
1. You need to have MacOS X Installed on another hard disk or on USB pendrives. I highly recommend you to grab a 16GB or 32GB USB pendrive and install OSX to it. It will be a “reecovery” OSX partition whereby you are able to use it in times of fixing your main partition. This is a must have as for us hackint0sh uses we don’t have the privilege of creating a Disk Warrior recovery disc or stuff like that
2. Your OSX partition (your main system that is) must be using GPT , some recovery tools for Mac (especially related to fixing file structure ) would cease to work in MBR.
Tools that you’ll be needing (provided that you are willing to pay and your data is very important)
Disk Warrior (I highly recommend you to purchase this , if you really want to recover data)
Some of the functionality of these tools do overlap with one another , but I prefer to have more than one tool . These softwares do cost money , so do keep that in mind ! I know , you could resort to dark side if you want too , but thats your call
The Free Method
So you don’t want to fork out $50 on a recovery software. The best way is for you to boot via your “recovery OSX disk” and start copying files over to another drive. If you want to keep your “user settings” preserved , I highly recommend backing up your home folder as it would contain your wallpaper , your downloads and whatever you’ve stored. You could move it as well , however it would not contain your applications which you have installed and other system kexts.
However , it would not fix the problem with the hard disk if the file structure is corrupted. Basically you would have to wipe your hard disk and start all over again
If you insist on doing a 1:1 copy , try CopyCatX or Clone X
(Yes , I know what you are thinking . I am just stating an alternative anyway)
Fixing File System related issues
If you have tried fsck and it did not fix your hard disk issue. This is where Disk Warrior comes in play . Disk Warrior fixes a lot of problem related to the file structure. So if fsck couldn’t fix it , you would use Disk Warrior. A word of caution , Disk Warrior could fix your drive , however you may have risk of losing some of your files. Be sure that you have backed them up. So far I have not faced any issue.
Fixing HDD sectors
If fsck reports no errors with the directory/file structure , and OSX is taking a long time to boot with kernel panics. It simply means one of your HDD sectors is bad.By default , your HDD should alert you that it is failing. If you insist on fixing your hdd sectors , give Drive Genius or Tech Tool pro a shot. There are risks involved in fixing hdd bad sectors. If you want to learn more about HDD sectors , click here