Mac电脑出厂设置为只能读取可是不能写入NTFS格式的移动硬盘。使得在平常使用中存在很大的不便。html
NTFS for Mac
、Tuxera NTFS for Mac
、Paragon NTFS for Mac
等。有段时间也考虑过花点钱买个软件省的操心了。后来在网上也看了一些人讲这几个软件好像也有点问题。而后又考虑到平时实际上使用移动硬盘的概率也不过高。买软件也不太便宜。因此最后没有买。后来在网上搜索解决方案,发现了一个看起来比较靠谱的。照着这个进行了操做,最终取得了成功。git
点击第一步回答中给出的网址连接 Fuse for macOS(开源免费的) api
Downloads
跳转到 Fuse for macOS
的下载连接,如图所示,选择 dmg 安装包,下载后安装到Mac电脑上。 Wiki
跳转到使用说明。Fust for macOS
的Wiki进行参照:如下是教程的内容 0x01:安装FUSE FOR MAC 3.5.8 我在附件中提供了连接.你们下载后打开安装.有一点注意事项以下 在选择安装项目的时候.要勾选全部项目.而后一路安装便可. 0x02:安装homebrew包管理器 介绍与安装官方讲解得很棒我就很少说了. 按照提示正常安装便可. https://m.baidu.com/from=1019023i/bd_page_type=1/ssid=0/uid=0/pu=usm%401%2Csz%401320_2001%2Cta%40iphone_1_10.2_3_601/baiduid=3695F2983A495494A6C55AAFCA34B674/w=0_10_/t=iphone/l=1/tc?ref=www_iphone&lid=12250308442610989631&order=1&fm=alop&waplogo=1&tj=www_normal_1_0_10_title&vit=osres&waput=3&cltj=normal_title&asres=1&title=HomebrewmacOS%E7%BC%BA%E5%A4%B1%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85%E7%AE%A1%E7%90%86%E5%99%A8&dict=-1&w_qd=IlPT2AEptyoA_yixI5qcGT1xq_&sec=21181&di=a77f28080c702c7b&bdenc=1&tch=124.0.42.192.0.0&nsrc=IlPT2AEptyoA_yixCFOxCGZb8c3JV3T5ABSDMDcKAT0rzyeuhPTaC_d5WnrwLjWOF5j-&eqid=aa01d69fa6cbf8001000000059219b15&wd= 0x03:使用homebrew安装ntfs-3g 安装完homebrew以后. 执行以下命令: brew install ntfs-3g 稍等片刻便可安装完毕 0x04:将ntfs-3g驱动程序做为macOS的默认挂载驱动. 执行如下两条命令: sudo mv "/Volumes/xxx/sbin/mount_ntfs" "/Volumes/xxx/sbin/mount_ntfs.orig" sudo ln -s /usr/local/sbin/mount_ntfs "/Volumes/xxx/sbin/mount_ntfs" 注意此处的xxx应该改成你系统安装磁盘的名称. 0x05:重启&ENJOY!
(注:这里个人是把上边的 xxx 替换成了 Macintosh HD
)安全
NTFS-3G
的部分。下面对这部分中涉及到的相关命令进行简单介绍:app
Installation:打开终端,使用命令行经过 Homebrew
安装 NTFS-3G
(Homebrew 是Mac上经常使用的包管理工具,在此再也不赘述。)执行如下命令: brew install ntfs-3g
iphone
安装 NTFS-3G
以后。执行如下命令:ide
sudo mkdir /Volumes/NTFS sudo /usr/local/bin/ntfs-3g /dev/disk1s1 /Volumes/NTFS -olocal -oallow_other
在执行这步时可能会提示权限不够,执行时可能须要把其中的 /usr/local/bin/ntfs-3g
替换成 /usr/local/sbin/mount_ntfs
此处存疑。工具
Even though you have installed NTFS-3G, newly connected NTFS volumes will still be auto-mounted in read-only mode. To change this you need to replace Apple's NTFS mount tool /sbin/mount_ntfs with the one provided by NTFS-3G.
这里引用Wiki原文,新安装 NTFS-3g
以后,NTFS格式的磁盘仍是会按只读模式挂载,须要把苹果原来的NTFS挂载工具替换为 NTFS-3g
提供的。ui
On OS X El Capitan files in the /sbin directory are protected from being tampered with by a new security feature called System Integrity Protection (SIP). SIP does not protect you against the security threat outlined above. To replace /sbin/mount_ntfs with the version provided by NTFS-3G you will need to reboot your Mac in recovery mode before proceeding. See https://support.apple.com/en-us/HT201314 for details on how to start the recovery system. Once in recovery mode open a new Terminal window from the Utilities menu.
以上引用Wiki原文,Mac的 /sbin
目录被 System Integrity Protection (SIP)
安全特性保护了。修改其中的内容时会提示权限不够。须要参照后边的教程来临时关闭这个安全特性。
If volume is APFS, then it will need to be unlocked to install mount_ntfs. Let's assume that Macintosh HD is identified as disk1s1.
diskutil list diskutil apfs unlockVolume disk1s1
sudo mv "/Volumes/Macintosh HD/sbin/mount_ntfs" "/Volumes/Macintosh HD/sbin/mount_ntfs.orig" sudo ln -s /usr/local/sbin/mount_ntfs "/Volumes/Macintosh HD/sbin/mount_ntfs"
执行这个命令来备份原来的ntfs 挂载工具到 /Volumes/Macintosh HD/sbin/mount_ntfs.orig
并把新安装的 NTFS-3g
带来的挂载工具当作默认的ntfs 挂载工具。 这个命令会改变Mac的 /sbin
目录。须要参照下边的教程来临时关闭SIP保护特性。
临时关闭SIP特性须要重启时按住 Command (⌘)-R
进入 recovery
模式。并打开终端,我在实际操做时有几回没找到打开终端的地方,后来又找到了。进入 recovery
模式后的图片以下所示,打开终端是在最顶上的状态栏里,而不是从下图中这四个之中进入。具体可开关这个特性可参照下边的教程。另外注意及时再把这个保护特性给打开。