Wednesday, August 3, 2016

How to Mount Bootcamp NTFS Drive on Mac with Write Access

If you have installed Windows on your Mac using Bootcamp, the odds are your bootcamp partition is NTFS, which is the default file system for Windows, including Windows 10. By default, your Mac will be able to read this partition, but won't be able to write.
$ cd /Volumes/BOOTCAMP
$ touch test
touch: test: Read-only file system

By default, the Bootcamp drive is mounted at /Volumes/BOOTCAMP, but it may differ on your system. To check your disk partitions, run
$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Mac OS X                70.5 GB    disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data BOOTCAMP                50.0 GB    disk0s4

As you can see above, on my system BOOTCAMP is the name of the partition, with 50GB of disk space assigned to it.

Now, let's enable write-access to NTFS partition. To do so, edit /etc/fstab file,
$ sudo vim /etc/fstab

and add the following line
LABEL=BOOTCAMP none ntfs rw,auto,nobrowse

Make sure that you replace BOOTCAMP with whatever the name of your NTFS partition.

The change will take place after re-mounting the partition. To do so, open up Disk Utility from /Applications/Utilities folder, select BOOTCAMP partition, and click on Unmount button to unmount it. Once it is unmounted, simply click on the Mount button to re-mount it.

You should now be able to read and write. For example, the following commands will create a test file on the NTFS partition and remove it.
$ cd /Volumes/BOOTCAMP
$ touch test
$ rm test

The write-access will remain as long as you keep the inserted line in /etc/fstab file.