(免費方案)Mac支持NTFS文件系統讀寫

目錄

  • 免費便捷方案--Mounty

  • 藉助ntfs-3g開源軟件

1、使用Mounty

1.安裝(https://mounty.app/)

brew cask install mountygit

2.風險

My USB stick will not re-mount. An alert is popping up telling me to re-attach the stick, but this doesn't help.

This can happen when the USB stick is not cleanly unmounted from the Windows PC. If you simply unplug the USB stick from PC without using the little tray icon to detach the hardware correctly, the volume will be marked as "not cleanly unmounted". There might be some dirty sectors left and Mac OS X will not be able to re-mount in read-write mode for that reason.

Suddenly all my files disappeared - please help!(全部的文件都找不到了!)

This is usually happen when not all files are written properly due to an unmount operation not finishing. The NTFS partition might be marked as "dirty" and the Apple NTFS driver cannot recover from that situation. Mounty will not delete anything by itself, please try to restore your files on a Windows PC using usual recovery s/w, i.e. chkdsk command line utility or professional tools like GetDataBack for Windows. If you do not own any Windows you can use tools for macOS that can deal with NTFS partition maintenance, like Paraogn Harddisk Manager or Tuxera Disk Manager.

Sometimes the files are grayed out and cannot be modified anymore.

This is because the file has extended attributes, refer to the Manpage of xattr for further explanation. If you open the file path in terminal application, you can list the attributes with ls -l@ <filename>, and remove those attributes with xattr -d com-apple.<attribute> <filename>, i.e.: xattr -d com.apple.FinderInfo testfile.txt

Unable to re-mount in read/write mode when trying to mount Windows 10 partition

If you try to mount a Windows System partition, Mounty might fail when Hibernation feature is enabled. There is a Fast Start feature in Windows which might be enabled by default, and this is causing the drive to be locked. Within Windows running, you need to run the command powercfg /hibernate off in an admin powershell and restart Windows to disable this feature and remove the lock to enable it for Mounty. Thanks to Art Schultz pointing that out.

2、使用ntfs-3g開源軟件

1.安裝FUSE for macOS

https://github.com/osxfuse/osxfuse/releasesgithub

2.經過homebrew安裝ntfs-3g

brew install ntfs-3gshell

3.在恢復模式下禁用System Integrity Protection(系統完整性保護)

①進入恢復模式。重啓電腦,同時按下command+R

②在恢復模式下打開terminal,輸入『csrutil disable』,禁用System Integrity Protection

4.重啓電腦,從新掛載根目錄,使得系統關鍵目錄可寫

掛在命令:sudo mount -uw /macos

5.備份原來的mount_ntfs命令,同時建立軟連接指向ntfs-3g命令

備份原來的命令:sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.originalwindows

建立軟連接指向ntfs-3g:sudo ln -s /usr/local/sbin/mount_ntfs /sbin/mount_ntfsapp

6.從新進入恢復模式開啓System Integrity Protection(系統完整性保護)

①進入恢復模式。重啓電腦,同時按下command+R

②在恢復模式下打開terminal,輸入『csrutil enable』,開啓System Integrity Protection

操做完以後就能夠進行ntfs文件系統的讀寫了

注意:更新系統會致使失效,須要從新進行一次操做!!!

3、站在巨人肩膀上摘蘋果

https://medium.com/macoclock/enabling-ntfs-write-in-macos-10-15-catalina-the-open-source-way-a5fd0d1cb32ethis

相關文章
相關標籤/搜索