repair apple hfs file system with fsck_hfs

To be simple:

When you can’t boot into MacOSX in your mac computer, just Press and hold Apple key + s on you keyboard when powering on, you will get into a text based shell, there we can do some fix without use of Mac install CD.

First, we should know which disk need to run fsck_hfs.

Hint “fsck” and press enter, you will get a error message like:

fsck can’t run on /dev/rdisk0s2

The /dev/rdisk0s2 above is what we need for the following step, if you are installing macosx as default layout, it should be /dev/rdisk0s2

Ok, let’s roll.

Type command: fsck_hfs -fy /dev/rdisk0s2 and hint enter, after a few minutes, it should stop running, end with ***disk modified***

Then you should issue “reboot” command to reboot your mac, if it still doesn’t work, try the following:

fsck_hfs -fry /dev/rdisk0s2

Apple kb link here: http://developer.apple.com/library/mac/#DOCUMENTATION/Darwin/Reference/ManPages/man8/fsck_hfs.8.html

Good luck to you guys.

Following content is off topic and in Chinese, just ignore them if you r trying to fix your mac 😉

这篇文章本来不打算恢复的,某然间去Google WMT看到这篇文章有不少链,都来自apple的论坛,就这样404掉好像不太妥,于是手工凭印象恢复了……估计很快就能看到大量(~10ip/day)的访问了。。

repair apple hfs file system with fsck_hfs》有4个想法

  1. Ben Goulding-Huckle

    Thanks, the “fsck_hfs -fry /dev/rdisk0s2” fixed my Invalid Key problems which stopped my mac from booting.

    回复
  2. Cesare

    Not even the recovery software was able to accomplish what fsck_hfs
    -fy /dev/rdisk0s2 did! My 1994 iMac is back to life … Just in
    time to wait until the new one comes up this month.. Thanks!

    回复
  3. Alessandro Nardi

    Dear Jhon, thank you a lot.. with your post, the only one i red in
    the internet that really helped me, you saved me… I know it
    sounds a bit exaggerated, but that is… Thank you again man! Best
    wishes, Alessandro

    回复

Leave a line?

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据