How to implement writable mount of NTFS partitions without using third-party tools under Mac

Source: Internet
Author: User

Issue background

I think a lot of students using Mac will encounter the problem of read and write NTFS disk, because by default, Mac OSX mounts the NTFS disk is read-only (read-only), so it is very inconvenient to insert an NTFS-formatted disk into the Mac, which is only readable and not writable.

As a result, there are third-party tools such as Tuxera NTFS for Mac, Paragon NTFS for Mac, and so on, which can be used to write to NTFS under MAC, but these tools are charged and of course some cracked versions, But there is a security risk to cracking the software after all, so,i don ' t really like that.

In addition, Tuxera provides an open source NTFS read-write scheme: NTFS-3G, GPL-based ntfs-3g can also implement NTFS partition reads and writes on Mac OS X via the user-space file system. This plan is also quite good, just need simple installation, this article no longer unfolds. Specific can refer to the official link: http://www.tuxera.com/community/open-source-ntfs-3g/

But in fact, we can solve this problem completely without the help of any third-party tools, because in fact, OSX native is supported by NTFS. Later, due to Microsoft's limitations, Apple blocked this feature, but we can manually turn this option on from the command line.

How does that?

Mount View disk Mount status

thatsitdemacbook-pro:~ thatsit$ mount/dev/disk4s2 on/volumes/untitled (NTFS, local, Nodev, Nosuid, Read-only, Noowners) thatsitdemacbook-pro:~ thatsit$

At this point, if we are going to implement the writable mount of the/DEV/DISK4S1 partition, we just need to do a little bit of two steps: Unload, Reload

Unloading

thatsitdemacbook-pro:~ thatsit$ sudo umount/volumes/untitled/

Re-mount

thatsitdemacbook-pro:~ thatsit$ sudo mount-t ntfs-o rw,auto,nobrowse/dev/disk4s2/volumes/udisk/

  

At this time/DEV/DISK4S2 has been read and written to the/volumes/udisk/, the following we will carry out the confirmation of the results of the Mount

Confirm Mount

thatsitdemacbook-pro:~ thatsit$ mount|grep ntfs/dev/disk4s2 on/volumes/udisk (NTFS, local, noowners, Nobrowse) thatsitdemacbook-pro:~ thatsit$

Test Write

thatsitdemacbook-pro:~ thatsit$ cd/volumes/udisk/thatsitdemacbook-pro:udisk thatsit$ Touch test_ Writingthatsitdemacbook-pro:udisk thatsit$ ll|grep test_writing-rwxr-xr-x 1 thatsit staff 0 17:14 Test_writingthats Itdemacbook-pro:udisk thatsit$ thatsitdemacbook-pro:udisk thatsit$ echo Heheda >> test_writing Thatsitdemacbook-pro:udisk thatsit$ cat test_writing hehedathatsitdemacbook-pro:udisk thatsit$ ThatsitdeMacBook-Pro: Udisk thatsit$ ll|grep test_writing-rwxr-xr-x 1 thatsit staff 7 17:15 Test_writingthatsitdemacbook-pro:udisk Thatsi t$

Detailed description of the above mount parameters:

mount-t ntfs-o rw,auto,nobrowse/dev/disk4s2/volumes/udisk/-T NTFS # performs the partition file system format to Mount-O # performs mount options RW # read-write , Mount Auto # to automatically detect the file system in a read-write manner, this parameter can be omitted Nobrowse # This option is very important, because this option indicates that this partition is not displayed in the Finder, only open this option to mount the disk in read-write mode/dev/disk4s2 # The partition to mount, that is, the drive letter we see in the Mount command/volumes/udisk/# mount point */volumes/udisk This directory is required to exist if it does not exist need to be created manually under: sudo mkdir/volumes/udisk* If the directory does not exist, you will receive the following error: Mount:realpath/volumes/udisk:no such file or directory

  

As you can see from the above test, the NTFS partition is already writable, but there is another small problem at this time because we use the NOBROWSE option when we mount it, which is not displayed in the Finder.

There are always some students are not used to always use the command line to operate, so the need to solve the problem high:
The solution is actually very simple, because this partition is hung/volumes under, we put this directory on the desktop to make a soft link on the OK.

Create a soft link

Thatsitdemacbook-pro:udisk thatsit$ sudo ln-s/volumes/udisk/~/desktop/udiskpassword: # <---- Enter User password Thatsitdemacbook-pro:udisk thatsit$

The effect is as follows: The following letter is displayed on the desktop, click to enter the Finder

----Done----

Reference Links:
Https://zh.wikipedia.org/wiki/NTFS

How to implement writable mount of NTFS partitions without using third-party tools under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.