开启Mac OSX原生NTFS读写支持

实现步骤

终端输入下面代码 获得硬盘的UUID

diskutil info /Volumes/磁盘名 | grep UUID

写入配置文件

echo "UUID=EC9AB3F7-9AF6-F2EC-C4EC-F22419F32464 none ntfs rw,auto,nobrowse" | sudo tee -a /etc/fstab

重新连接此USB设备,桌面上不再显示这个 USB 分区的白色盒子图标。

创建访问磁盘链接

sudo ln -s /Volumes ~/Desktop/Volumes

在桌面会出现Volumes的快捷方式,打开即可找到硬盘。

相关文档

/*
* We only allow read/write mounts if the “nobrowse” option was also
* given. This is to discourage end users from mounting read/write,
* but still allows our utilities (such as an OS install) to make
* changes to an NTFS volume. Without the “nobrowse” option, we force
* a read-only mount. Note that we also check for non-update mounts
* here. In the case of an update mount, ntfs_remount() will do the
* appropriate checking for changing the writability of the mount.
*/
if ((vfs_flags(mp) & MNT_DONTBROWSE) == 0 && !vfs_isupdate(mp))
vfs_setflags(mp, MNT_RDONLY);

http://www.opensource.apple.com/source/ntfs/ntfs-83/kext/ntfs_vfsops.c

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值