Skip to content

Instantly share code, notes, and snippets.

Last active December 2, 2021 03:58
Show Gist options
  • Save bjorgvino/f24e5c079b92f921b765 to your computer and use it in GitHub Desktop.
Save bjorgvino/f24e5c079b92f921b765 to your computer and use it in GitHub Desktop.
osxfuse + ntfs-3g + Yosemite = NTFS R/W
Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
Link mount_ntfs:
> sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original
> sudo ln -s /usr/local/Cellar/ntfs-3g/2014.2.15/sbin/mount_ntfs /sbin/mount_ntfs
The output of the following should be as below:
> ls -l /sbin/mount_ntfs*
/sbin/mount_ntfs -> /usr/local/Cellar/ntfs-3g/2014.2.15/sbin/mount_ntfs
/sbin/mount_ntfs.original -> /System/Library/Filesystems/ntfs.fs/Contents/Resources/mount_ntfs
Reboot and voila
Copy link

fiedl commented Jan 31, 2015


It's also possible to install osxfuse through Homebrew Cask:

brew install caskroom/cask/brew-cask  # installs Homebrew Cask
brew cask install osxfuse

Copy link

Thank you. You save me. Wonder why brew skips that step...

Copy link

I made two small changes to the path used for the symlink operation. I think this is safer as it's agnostic to the version number of ntfs-3g:

Copy link

Thanks, you made my day! ;)

Copy link

medoix commented Jun 13, 2015

Error: No available formula for ntfs-3g

Copy link

I'm getting the same error as @medoix

double sad.

Copy link

sibte commented Jun 17, 2015

brew install Caskroom/cask/osxfuse
brew install homebrew/fuse/ntfs-3g

Copy link

Edit: working with sibte's solution

Copy link

After I did this, my drive does not show up anywhere? :(

Copy link

brew install homebrew/fuse/ntfs-3g

Copy link

Because of Homebrew/legacy-homebrew#33298 the brew install Caskroom/cask/osxfuse step suggested by @sibte is probably required on Yosemite. What is more you HAVE TO use version agnostic symlinking provided by @crcastle because current ntfs-3g version (at the time of writing this) is 2015.3.14 not 2014.2.15 (hard coded in this gist)

I experienced "not show up" bug when I didn't restart my OS after making changes (changing symlink).

Copy link

Doesn't work

Copy link

I finally write files in my ntfs drive doing a few steps after brew install homebrew/fuse/ntfs-3g
sudo nvram boot-args="rootless=0"
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original
sudo ln -s /usr/local/sbin/mount_ntfs /sbin/mount_ntfs
sudo nvram boot-args="rootless=1"

Copy link

sagunms commented Aug 11, 2015

After several unsuccessful attempts, my NTFS hard disk R/W works. This is summarising the above steps.
Note: use of --force may not be necessary for you. Also, I don't think sudo nvram boot-args="rootless=0" method really worked.

Uninstall via Brew

brew uninstall --force osxfuse
brew uninstall --force ntfs-3g

Uninstall via System Preferences
In System Preferences I could still see FUSE for OSX and NTFS-3G icons. So I went inside and manually removed each (by clicking Remove OSXFUSE button for example).

Installation steps

brew update
brew install Caskroom/cask/osxfuse --force
brew install homebrew/fuse/ntfs-3g

Link mount_ntfs

sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original

Note: Output of installing ntfs-3g was: /usr/local/Cellar/ntfs-3g/2015.3.14: 87 files, 2.0M, built in 27 seconds, so the symbolic link was set as follows:

sudo ln -s /usr/local/Cellar/ntfs-3g/2015.3.14/sbin/mount_ntfs /sbin/mount_ntfs

Reboot mac:

sudo reboot

Worked for me! Thanks everyone!

Copy link

lankesh commented Sep 19, 2015

There is one problem that I am facing, the name of the mounted directory keeps on adding incremental numbers and the old directory is not deleted

Say my external HD's label is "WD HD" then when I mount it for the first time it says "WD HD".
But when I unmount it and re-mount it then the label changes to "WD HD 1" and the old label is still there in "/Volumes".

Any idea on how to fix this?

Copy link

nvcken commented Sep 22, 2015

Hi all, Has any way to add option format "Windows NT System" to erase action in Disk Utility.

Copy link

capthy commented Sep 30, 2015

@lankesh install the latest osxfuse 3.0.6 dmg works for me.
More details here: osxfuse/osxfuse#119 (comment)

brew cask uninstall osxfuse
brew uninstall homebrew/fuse/ntfs-3g
# install osxfuse 3.0.6 dmg
brew install homebrew/fuse/ntfs-3g
# check the symlink is still there:
ls -al /sbin/mount_ntfs
 /sbin/mount_ntfs -> /usr/local/sbin/mount_ntfs

ls -al  /usr/local/sbin/mount_ntfs
/usr/local/sbin/mount_ntfs -> ../Cellar/ntfs-3g/2015.3.14/sbin/mount_ntfs

Copy link

everything worked for me, but when i try
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original
it says Operation Not Permitted

Copy link

Copy link

@rezaprima you mean i should install the osxfuse 3.0.6 dmg?
Sorry, but i'm not an expert....

Copy link

Solved Problem:
I Had to disable SIP in recovery after that, it works.

Copy link

ghost commented May 26, 2016

Thanks, this worked. My instructions at this date were slightly different.

Using OS X El Capitan 10.11.5 (15F34)

  1. brew install Caskroom/cask/osxfuse
  2. brew update && brew install ntfs-3g
  3. Rebooted and pressed Command + R, then from Terminal, ran csrutil disable
  4. sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original
  5. sudo ln -s /usr/local/Cellar/ntfs-3g/2016.2.22/sbin/mount_ntfs /sbin/mount_ntfs
  6. Verified with ls -l /sbin/mount_ntfs*

Copy link

The same works on macOS Sierra. Make sure to run steps 4+ in regular macOS.

Copy link

svnp10 commented May 23, 2017

@sindhus instructions - change step 5 to 'sudo ln -s /usr/local/sbin/mount_ntfs /sbin/mount_ntfs' worked for for MacOS Sierra

Copy link

any news on this for mojave shit ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment