mac 读写ntfs

mac读写NTFS

C-2创建:崔大壮, 最后修改: 崔大壮04-14 13:38

代码块

Shell

#/bin/bash
newDev=$(mount | grep ntfs|awk -F ' ' '{print $1}')
echo "新设备 : "$newDev
echo -e '\n'  #打印换行
sudo umount $newDev
sudo mkdir -p ~/Desktop/myUSB
sudo mount_ntfs -o rw,auto,nobrowse,noowners,noatime,nodev $newDev ~/Desktop/myUSB
echo "新ntfs设备,添加写权限成功!"

参考:

https://www.jianshu.com/p/139b1f98740b

https://www.cnblogs.com/thatsit/p/6218117.html

https://blog.csdn.net/elaine_bao/article/details/79276947

https://segmentfault.com/a/1190000000749988

https://segmentfault.com/a/1190000005850790

史上最漂亮-Mac支持NTFS工具 https://juejin.im/entry/59f73fba51882546b15bcc52

你可能感兴趣的:(开发工具)