MAC OS 10.15 挂载ntfs文件系统并设置自动挂载RW模式.

解决方案

免费的 开源的 方法

  • 安装 ntfs-3g
    • brew install ntfs-3g
      # 如果之前没安装brew现在要先安装 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 然后在执行 brew install ntfs-3g
  • 手动挂载方式
    到此你可以手动挂载ntfs文件系统的分区了并可以对ntfs文件系统进行读写操作.
    sudo mkdir /Volumes/NTFS #建立挂载目录
    sudo /usr/local/bin/ntfs-3g /dev/disk1s1 /Volumes/NTFS -olocal -oallow_other #开始挂载
  • 设置自动挂载方式
    如果你想让系统自动挂载,你要多做一些事情
  1. 关闭sip 系统完整性保护 功能.
    你要进入recover 模式,在命令行中输入 csrutil disable
    重新启动macos ,进入系统后 解锁根分区 .使之可以被读写 命令: sudo mount -uw /

  2. 替换掉系统的/sbin/mount_ntfs 为我们的 ntfs-3g /usr/local/sbin/mount_ntfs
    1. 先备份
      sudo mv "/Volumes/你的macOS系统所有分区名称/sbin/mount_ntfs" "/Volumes/你的macOS系统所有分区名称/sbin/mount_ntfs.orig"
    2. 建立软连接
      sudo ln -s /usr/local/sbin/mount_ntfs "/Volumes/你的macOS系统所有分区名称/sbin/mount_ntfs"
  3. 开启sip [可选]
    csrutil enable

参考:
https://brew.sh/
https://github.com/osxfuse/osxfuse/wiki/NTFS-3G
https://github.com/osxfuse/osxfuse/releases

猜你喜欢

转载自www.cnblogs.com/lovesKey/p/11832289.html