after switching to a Mac computer for some time, I found it was a bit uncomfortable to write to the NTFS-formatted disk under the Mac, so I went to the research.
There are three ways to solve these problems.
The first is to use Third-party software directly, such as Paragon NTFS for Mac,tuxera NTFS, but most of them are charged. There's a free one for mounty.
The second, the script I wrote, is actually a third way of scripting, which commands the following:
Curl-o https://raw.githubusercontent.com/CraryPrimitiveMan/code-examples/master/shell/mac_ntfs.sh
chmod +x./mac_ntfs.sh
./mac_ntfs.sh
Note: When executing, insert the disk.
During the period to enter your local password authorization to write the file, and then you will find a volumes shortcut on the desktop, click in, you can see your disk. After execution, you will need to reinsert the disk.
Third, manually turn on the hidden NTFS support in the MAC (after OS 10.5).
This also needs to be plugged into the disk and can then be viewed from the Finder or using the following command to view the volume Name of the disk:
Diskutil List
The results appear as follows:
As you can see, the Volume Name of my disk is Toshiba EXT.
Update/etc/fstab file immediately
sudo vim/etc/fstab
Write the following in
Label=toshiba40ext None NTFS Rw,auto,nobrowse
Here's a second explanation, 40 of which means instead of the spacebar, because my volume name has spaces, so I have to escape this space. The later NTFS RW indicates that the partition is mounted as a read-write NTFS format, and the last Nobrowse is important because this represents the fact that this partition is not shown in the Finder, which is very important and will not succeed if it is not opened.
After editing, reinsert the disk, can be identified, but this time there is a big problem, because this partition is not shown in the Finder, so how do we find it, we can not always use the command line, the solution is actually very simple, because this partition is hanging/volumes, Let's make a shortcut to this directory on the desktop.
sudo ln-s/volumes ~/desktop/volumes
You can then open the volumes shortcut on the desktop to use the