分类目录归档:Mac

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)的访问了。。

share-share-share

恩,最近给自己小白装N系统了,列举一下

硬盘320G,分了4个区

90G HFS+ SnowLeopard

30G NTFS Windows7

80G FAT32 作为公共分区,被N个系统共用,在其中装了一份WindowsXP中文版,游戏专用,爽歪歪^_^

最后接近100G是HFS+的data,用来塞所有大型安装包和虚拟机,因为Windows只支持3个主分区,所以这个区在bootcamp上装的Windows里是看不到的

接下来是一堆虚拟机,全部塞在data里

WindowsXP(中/英)

WindowsServer2008(CLI/GUI)

还有个Windows2000

接下来进入正题:共享

刚才那个FAT32的分区,在Windows下的盘符是D,因为parallels可以把某个分区共享给虚拟机,接下来只要在虚拟机里映射网络驱动器,勾上永久映射就OK了,所有的东西,只要是绿色的直接往这个分区丢,需要安装的就在每个需要安装的系统里安装一次就搞定~

有心情了写一下如何安装这么一大堆系统

Uninstalling MySQL on Mac OS X

打开terminal,,然后粘贴下面的这一堆给它就完事

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*