众所周知,macOS不支持NTFS写,但是可以自动装载NTFS硬盘可以读取。
PS:这里建议移动硬盘使用exFAT格式,可以同时支持win10以上系统和macOS
这里UP主遇到一个问题,之前由于想读取NTFS硬盘,试了几个号称NTFS读取工具,后来发现收费好贵,就卸载了,但是卸载后一直无法自动装载NTFS移动硬盘,使用diskutil mount也无法装载,使用磁盘工具也无法装载
diskutil list
diskutil mount /dev/disk4s1
报错
Volume on disk4s1 failed to mount
If you think the volume is supported but damaged, try the "readOnly" option
diskutil mountDisk /dev/disk4s1
成功,但是无效果
Volume(s) mounted successfully
后来意外看到~/.ntfstool/目录下的日志ntfstool.log,这里都贴上来,看了一下,应该是卸载重新安装或者更新日志。
INFO | CreateTrayIcon 0000000000000000000000
INFO | cmdStr: kextstat | grep ntfstool
INFO | command failed: exit status 1, output: Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
INFO | kextSuccess: false
INFO | cmdStr: diskutil listFilesystems
INFO | fsSuccess: false
INFO | CheckNtfsDriver false ---------
INFO | cmdStr: bless --info --getBoot
INFO | cmdStr: diskutil info -plist /dev/disk3s1
INFO | cmdStr: diskutil info -plist /dev/disk4s1
INFO | Serial Number1: C02GK31VQ05P
INFO | sendUrl: http://ntfstool.cn-hongkong.log.aliyuncs.com/logstores/ntfstoolplus/track?APIVersion=0.6.0&topic=Startup&computer_name=cwf%E7%9A%84MacBook+Pro&disk=932GB&ip=58.23.251.175&ipaddr=CN+Fujian+Xiamen&mem=16GB&os_version=23E224&product_name=MacBook+Pro+%2813-inch%2C+M1%2C+2020%29&product_soc_name=Apple+M1&sn=C02GK31VQ05P&username=cwf&version=3.5.1
INFO | Start Update_Check.....,updateURL: https://ntfstool.com/auth.php?action=update&version=3.5.1&type=beta
INFO | Log uploaded successfully.
INFO | File is empty, ignoring.
INFO | InstallNtfsDriver come...
INFO | cmdStr: csrutil status
INFO | csrutilOut: System Integrity Protection status: disabled.
INFO | csrutilSuccess:true
INFO | executablePath: /Applications/Ntfstool.app/Contents/MacOS/Ntfstool
INFO | executableDir: /Applications/Ntfstool.app/Contents/MacOS
INFO | new_ntfsa: 1104
INFO | ntfsa: 1104
INFO | sudoCmdStr: echo "1104" | sudo -S sudo rm -fr /Library/Filesystems/ntfs.fs
INFO | sudoCmdStr: echo "1104" | sudo -S sudo rm -fr /Library/Extensions/ntfs.kext
INFO | sudoCmdStr: echo "1104" | sudo -S sudo cp -r /Applications/Ntfstool.app/Contents/MacOS/ntfstool.fs /Library/Filesystems/ntfstool.fs
INFO | sudoCmdStr: echo "1104" | sudo -S sudo cp -r /Applications/Ntfstool.app/Contents/MacOS/ntfstool.fs/Contents/Resources/ntfstool.kext /Library/Extensions/ntfstool.kext
INFO | cmdStr: chown -R root:wheel /Library/Extensions/ntfstool.kext
INFO | Driver installation successful.
INFO | cmdStr: kextstat | grep ntfstool
INFO | command failed: exit status 1, output: Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
INFO | kextSuccess: false
INFO | cmdStr: diskutil listFilesystems
INFO | fsSuccess: true
INFO | CheckNtfsDriver false ---------
INFO | cmdStr: bless --info --getBoot
INFO | cmdStr: diskutil info -plist /dev/disk3s1
INFO | cmdStr: diskutil info -plist /dev/disk4s1
INFO | InstallNtfsDriver come...
INFO | cmdStr: csrutil status
INFO | csrutilOut: System Integrity Protection status: disabled.
INFO | csrutilSuccess:true
INFO | executablePath: /Applications/Ntfstool.app/Contents/MacOS/Ntfstool
INFO | executableDir: /Applications/Ntfstool.app/Contents/MacOS
INFO | sudoCmdStr: echo "1104" | sudo -S sudo kextload /Library/Extensions/ntfstool.kext
INFO | command failed: exit status 27, output: Password:Executing: /usr/bin/kmutil load -p /Library/Extensions/ntfstool.kext
Error Domain=KMErrorDomain Code=27 "Extension with identifiers com.ntfstool.filesystems.ntfstool not approved to load. Please approve using System Preferences." UserInfo={NSLocalizedDescription=Extension with identifiers com.ntfstool.filesystems.ntfstool not approved to load. Please approve using System Preferences.}
INFO | sudoCmdStr: echo "1104" | sudo -S sudo rm -fr /Library/Filesystems/ntfs.fs
INFO | sudoCmdStr: echo "1104" | sudo -S sudo rm -fr /Library/Extensions/ntfs.kext
INFO | sudoCmdStr: echo "1104" | sudo -S sudo cp -r /Applications/Ntfstool.app/Contents/MacOS/ntfstool.fs /Library/Filesystems/ntfstool.fs
INFO | sudoCmdStr: echo "1104" | sudo -S sudo cp -r /Applications/Ntfstool.app/Contents/MacOS/ntfstool.fs/Contents/Resources/ntfstool.kext /Library/Extensions/ntfstool.kext
INFO | cmdStr: chown -R root:wheel /Library/Extensions/ntfstool.kext
INFO | Driver installation successful.
INFO | cmdStr: kextstat | grep ntfstool
INFO | command failed: exit status 1, output: Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
INFO | kextSuccess: false
INFO | cmdStr: diskutil listFilesystems
INFO | fsSuccess: true
INFO | CheckNtfsDriver false ---------
INFO | cmdStr: bless --info --getBoot
INFO | cmdStr: diskutil info -plist /dev/disk4s1
INFO | cmdStr: diskutil info -plist /dev/disk3s1
INFO | InstallNtfsDriver come...
INFO | cmdStr: csrutil status
INFO | csrutilOut: System Integrity Protection status: disabled.
INFO | csrutilSuccess:true
INFO | executablePath: /Applications/Ntfstool.app/Contents/MacOS/Ntfstool
INFO | executableDir: /Applications/Ntfstool.app/Contents/MacOS
INFO | sudoCmdStr: echo "1104" | sudo -S sudo kextload /Library/Extensions/ntfstool.kext
INFO | command failed: exit status 27, output: Password:Executing: /usr/bin/kmutil load -p /Library/Extensions/ntfstool.kext
Error Domain=KMErrorDomain Code=27 "Extension with identifiers com.ntfstool.filesystems.ntfstool not approved to load. Please approve using System Preferences." UserInfo={NSLocalizedDescription=Extension with identifiers com.ntfstool.filesystems.ntfstool not approved to load. Please approve using System Preferences.}
INFO | sudoCmdStr: echo "1104" | sudo -S sudo rm -fr /Library/Filesystems/ntfs.fs
INFO | sudoCmdStr: echo "1104" | sudo -S sudo rm -fr /Library/Extensions/ntfs.kext
INFO | sudoCmdStr: echo "1104" | sudo -S sudo cp -r /Applications/Ntfstool.app/Contents/MacOS/ntfstool.fs /Library/Filesystems/ntfstool.fs
INFO | sudoCmdStr: echo "1104" | sudo -S sudo cp -r /Applications/Ntfstool.app/Contents/MacOS/ntfstool.fs/Contents/Resources/ntfstool.kext /Library/Extensions/ntfstool.kext
INFO | cmdStr: chown -R root:wheel /Library/Extensions/ntfstool.kext
INFO | Driver installation successful.
INFO | cmdStr: kextstat | grep ntfstool
INFO | command failed: exit status 1, output: Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
INFO | kextSuccess: false
INFO | cmdStr: diskutil listFilesystems
INFO | fsSuccess: true
INFO | CheckNtfsDriver false ---------
INFO | cmdStr: bless --info --getBoot
INFO | cmdStr: diskutil info -plist /dev/disk3s1
INFO | cmdStr: diskutil info -plist /dev/disk4s1
可以看出,其实这些NTFS工具是没有卸载干净的,主要就是一些外挂的插件之类的工具,例如 sudo -S sudo rm -fr /Library/Filesystems/ntfs.fs 目录;sudo -S sudo rm -fr /Library/Extensions/ntfs.kext目录。实际上,sudo -S sudo rm -fr /Library/Filesystems目录下有NTFS字样的都可以干掉。
干掉后,重新找搜索找到磁盘工具(也可以在启动台找到磁盘工具),选择外置-装载,就可以直接看到了(理论上重新插拔也是可以的,但是没试)。
全文完。