Home > Linux, Mac > Repair Mac OS via Linux

Repair Mac OS via Linux

First of all, you must have a copy of the physical disk image, in case the tool destroy all the data (you never know).

So, take another big disk and make a dd of it (or, better, a forensics dd: ddrescue for example http://www.forensicswiki.org/wiki/Ddrescue ).

dd if=/dev/hda of=mybigfile.img bs=65536 conv=noerror,sync

after that, put your mybigfile.img in a secure place.

Second, if the hardware is defective, you must use a good disk, and restore your disk image on it:

dd if=mybigfile.img of=/dev/hdx bs=65536

After that, you must use a recovery tool. You can check many recovery tools, but in the first place I would try with fsck.hfs ( http://linux.die.net/man/8/fsck.hfs ).

I can’t suggest you any other hfs+ recovery tool, because I didn’t have the need to use it. Try a look on internet, and always work on a COPY of the IMAGE you made on the first step!


to change the permissions you need to be a super-user (root).

You accomplish this by typing ‘sudo su’, and then the password for your account. This makes you root.

Next, execute the command: chmod -R 777 /path/to/your/mounted/devi


That will remove the perimssions restrictions from every file on the disk.


Categories: Linux, Mac Tags:
  1. No comments yet.
  1. No trackbacks yet.