Skip to content

Instantly share code, notes, and snippets.

@bjorgvino
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:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
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
@medoix
Copy link

medoix commented Jun 13, 2015

:(
Error: No available formula for ntfs-3g

@jasonzeeee
Copy link

I'm getting the same error as @medoix

double sad.

@sibte
Copy link

sibte commented Jun 17, 2015

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

@telemakhos
Copy link

Edit: working with sibte's solution

@dowsanjack
Copy link

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

@nascimento
Copy link

brew install homebrew/fuse/ntfs-3g

@jmarceli
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 https://gist.github.com/crcastle/5aa97cbce28bf3ff5d1a 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).

@oscarlgarcia
Copy link

Doesn't work

@oscarlgarcia
Copy link

Update:
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"
[reboot]
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"
[reboot]

@sagunms
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!

@lankesh
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?

@nvcken
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.

@capthy
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

@Johnny0405
Copy link

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

@rezaprima
Copy link

@Johnny0405
Copy link

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

@Johnny0405
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*

@mariotacke
Copy link

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

@svnp10
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

@braian87b
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