Skip to content

Instantly share code, notes, and snippets.

@Coeur
Forked from lopezjurip/README.md
Last active October 18, 2020 21:41
Show Gist options
  • Save Coeur/86a18b646a3b78930cf3 to your computer and use it in GitHub Desktop.
Save Coeur/86a18b646a3b78930cf3 to your computer and use it in GitHub Desktop.
Write to NTFS on OSX Yosemite and El Capitan

Install osxfuse (3.x.x) from https://github.com/osxfuse/osxfuse/releases.

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update Homebrew formulae:

brew update

Install ntfs-3g

brew install homebrew/fuse/ntfs-3g

If you are on OSX 10.11 (El Capitan), temporary disable System Integrity Protection.

[reboot by holding CMD+R to get in recovery mode]
csrutil disable
[reboot normally]

Create a symlink for mount_ntfs

sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original 
sudo ln -s /usr/local/sbin/mount_ntfs /sbin/mount_ntfs

If you are on OSX 10.11 (El Capitan), re-enable System Integrity Protection.

[reboot by holding CMD+R to get in recovery mode]
csrutil enable
[reboot normally]

Based on: http://apple.stackexchange.com/questions/20889/how-do-i-write-to-ntfs-drives-in-os-x/213575#213575

@rodvlopes
Copy link

thanks @webshocker I had to relink

@jashk
Copy link

jashk commented Feb 4, 2016

@webshocker force relink ntfs-3g 💃 thks

@AlpKay
Copy link

AlpKay commented Mar 28, 2016

Uhm, okay so I'm pretty much a Newbie and would say I don't get most of the things. So what I missed might be something very marginal. Still hope you people can help me.

I have no problem until the part with creating a symlink. However once I try sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original it tells me "No such file or directory". If I do the linking stuff it'll tell me "Error: Could not symlink include/ntfs-3g/acls.h
Target /usr/local/include/ntfs-3g/acls.h
already exists. You may want to remove it:
rm '/usr/local/include/ntfs-3g/acls.h'

To force the link and overwrite all conflicting files:
brew link --overwrite ntfs-3g

To list all files that would be deleted:
brew link --overwrite --dry-run ntfs-3g"

So once I do brew link --overwrite ntfs-3g it then will tell me: "Error: Could not symlink include/ntfs-3g/acls.h
/usr/local/include/ntfs-3g is not writable."

(I have System Integrity Protection off.)

What did I do wrong? Thanks in advance.

@Fragden
Copy link

Fragden commented Mar 28, 2016

Hi,

First of all thanks, it is functioning. But the performance is very low. What might be the reason? Is there any possibility to fix it?

@JeanPicard
Copy link

sudo chmod -R 777 /usr/local/include/ntfs-3g
should solve the error

@ElisaSchmidt
Copy link

Hi there,
I'm running El Capitan on my MacBook Air and have followed Coeur's instruction down to typing "csrutil enable" in the terminal.
After the reboot, I'm getting the following messages:

Warning: homebrew/fuse/ntfs-3g-2015.3.14 already installed, it's just not linked
Elisas-MacBook-Air:~ elisa$ brew link homebrew/fuse/ntfs-3g
Linking /usr/local/Cellar/ntfs-3g/2015.3.14...
Error: Could not symlink include/ntfs-3g
/usr/local/include is not writable.
Elisas-MacBook-Air:~ elisa$ brew link --overwrite homebrew/fuse/ntfs-3g
Linking /usr/local/Cellar/ntfs-3g/2015.3.14...
Error: Could not symlink include/ntfs-3g
/usr/local/include is not writable.

Help would be much appreciated!

Thank you!
E.

@leoauri
Copy link

leoauri commented Aug 24, 2016

If anyone else for whatever reason has no recovery partition, you can make a USB stick into a boot disk with these instructions and run csrutil from there

@jadencp
Copy link

jadencp commented Nov 14, 2016

Thank you very for sharing the solution. It works properly in OSX 10.11.6.

@nhanitvn
Copy link

Thanks so much, it works perfectly on OS X Yosemite.

@95gabor
Copy link

95gabor commented Jan 14, 2017

@ElisaSchmidt
write this in the terminal
sudo chown -R `whoami`:admin /usr/local/lib/

@merolhack
Copy link

I get the next error:

Error: The brew link step did not complete successfully

I run the doctor brew command to see what is happened:

brew doctor

It gives me the next warning:

Warning: The following directories are not writable:
/usr/local/lib/pkgconfig

I solved it whit:

sudo chown -R $(whoami) /usr/local/lib/pkgconfig

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