最近装黑苹果某次更新后进不去了,看错误提示是更新后官方的声卡驱动和我加的驱动冲突了,所以删掉一个。
Windows下好像有软件能读写HFS分区,但我只有Linux,搜索了一下找到了解决方案,分享一下:Linux默认可读到HFS+分区, 但只有read权限。如果需要write权限则需要关掉journal功能,因为linux只支持读写non-journaled HFS+
一.关闭journal如果你能打开OS X:
#关闭Journal $ diskutil disableJournal disk0s2 Journaling has been disabled on disk0s2 #打开Journal $ diskutil enableJournal disk0s2 Journaling has been enabled on disk0s2
#关闭Journal $ diskutil disableJournal disk0s2 Journaling has been disabled on disk0s2 #打开Journal $ diskutil enableJournal disk0s2 Journaling has been enabled on disk0s2 |
如果你只有Linux:
下载journalling_off.c源码
http://pastebin.com/W8pfgHRe
或者 journalling_off
gcc journalling_off.c -o journalling_off sudo ./journalling_off /dev/sda2 </code>sudo ./journalling_off /dev/sda2 attributes = 0x80002100 journal has been disabled.
gcc journalling_off . c - o journalling_off sudo . / journalling_off / dev / sda2 < / code > sudo . / journalling_off / dev / sda2 attributes = 0x80002100 journal has been disabled . |
二.挂载hfs+分区
sudo mkdir /media/mac sudo mount -t hfsplus -o force,rw /dev/sda2 /media/mac/
sudo mkdir / media / mac sudo mount - t hfsplus - o force , rw / dev / sda2 / media / mac / |
如果没有出现警告就成功了
三.
无法挂载或者只读挂载,需要装hfsprogs来支持hfs
sudo apt-get install hfsprogs sudo fsck.hfsplus -f /dev/sda2
sudo apt - get install hfsprogs sudo fsck . hfsplus - f / dev / sda2 |
参考:
http://ubuntuforums.org/showthread.php?t=1490340
http://blog.ixtr.me/2013/04/linux%E4%BD%BF%E7%94%A8HFS/
http://blog.csdn.net/ibingow/article/details/8125450