• 【Mac】 开启原生的 NTFS 硬盘格式支持


    一、MacOS 10.13 之前

    • 直接跳到引用地址查看,下面的草记只是为了防止链接丢失

    引用地址

    • 打开终端 切换至root身份,输入如下,然后回车,若有密码则输入密码,密码的输入不会显示,输入完成直接回车即可。
    sudo -s
    
    • 进入/sbin目录,输入如下
    cd /sbin
    
    • 将系统自带的挂载程序改名,输入:mv mount_ntfs mount_ntfs_orig
    • 如果遇到报错:mv: rename mount_ntfs to mount_ntfs_orig: Operation not permitted.
      • 可以重启mac,按住command+R 进入恢复(recovery)模式找到 终端(在“实用工具”里面)
      • 关闭安全限制:csrutil disable
      • 然后重启:reboot
    • 改完名后,编写脚本: vim mount_ntfs ,按i开始编辑,内容如下
    #!/bin/sh
    /sbin/mount_ntfs_orig -o rw,nobrowse "$@";
    cd /Volumes/(你的盘符名字);
    find . -exec xattr -c {} ;
    
    • 然后保存,按esc后输入:wq后回车

    • 修改挂载文件权限: chmod a+x mount_ntfs

    • 退出root: exit

    • 由于新挂载的ntfs盘不能显示在Finder中,所以打开Finder前往文件夹 /Volumes,然后在用 cmmand+control+T/Volumes保存到边栏,在插入移动设备后不会在桌面显示,可以在Finder边栏的Volumes中查看。

    • 一切OK,开启了mac电脑的NTFS文件系统原生读写功能,读写速度方面还是可以接受的。

    二、MacOS 10.13 及之后

    • 直接跳到引用地址查看,下面的草记只是为了防止链接丢失

    引用地址

    sudo nano /etc/fstab 再输入密码回车进入配置
    
    LABEL=系统 none ntfs rw,auto,nobrowse
    LABEL=多媒体 none ntfs rw,auto,nobrowse
    LABEL=综合 none ntfs rw,auto,nobrowse
    LABEL=文档 none ntfs rw,auto,nobrowse
    
  • 相关阅读:
    POJ——T2186 Popular Cows || 洛谷——P2341 [HAOI2006]受欢迎的牛
    Tarjan缩点【模板】
    shell(1):网络配置、BATH环境和通配符
    STL
    J
    H
    G
    模板整理(二)
    B
    0-1背包问题
  • 原文地址:https://www.cnblogs.com/haoworld/p/mac-kai-qi-yuan-sheng-de-ntfs-ying-pan-ge-shi-zhi.html
Copyright © 2020-2023  润新知