Skip to content

Instantly share code, notes, and snippets.

@Coeur
Forked from lopezjurip/README.md
Last active Oct 18, 2020
Embed
What would you like to do?
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

@panuhorsmalahti

This comment has been minimized.

Copy link

@panuhorsmalahti panuhorsmalahti commented Nov 1, 2015

Is re-enabling system integrity protection necessary?

@peta909

This comment has been minimized.

Copy link

@peta909 peta909 commented Nov 1, 2015

I tried the above steps I didnt managed to get it to work in my OS X 10.11.1 I have disabled SIP and installed OS fuse 3.0.7.

I had this warning after installing ntfs-3g
homebrew/fuse/ntfs-3g-2015.3.14 already installed, it's just not linked

@Coeur

This comment has been minimized.

Copy link
Owner Author

@Coeur Coeur commented Nov 3, 2015

@panuhorsmalahti : no, not necessary, just recommended.

@peta909 : not sure, try to uninstall ntfs-3g and re-install it.

@aSabhyaK

This comment has been minimized.

Copy link

@aSabhyaK aSabhyaK commented Nov 14, 2015

Hi,

I am just a newbie here, and after I performed the above steps, and rebooted after the final step, I was not able to find my drive in question from within the Finder after plugging it in.

This is for the benefit of fellow newbies, but to see the drive(s), type the following command in the terminal and you should be able to see the drive(s) in the folder which opens up:

open /Volumes

Hope this helps.

It would be great if someone can shed some light on as to why the drives stop showing up on the Desktop and the Finder sidebar after performing these steps? Also, what can be done to achieve this?

P.S. I am using El Capitan 10.11.1.

@webshocker

This comment has been minimized.

Copy link

@webshocker webshocker commented Nov 18, 2015

@peta909

write this in the terminal

brew link homebrew/fuse/ntfs-3g.

if it ask to overwrite something do this :

brew link --overwrite  homebrew/fuse/ntfs-3g

it will solve the problem on El Capitan , as the ntfs-3g gets installed via brew but never got linked so it was not working, but it works after it gets linked to the system.

mine is working fine after this 💯

@RaffaeleT

This comment has been minimized.

Copy link

@RaffaeleT RaffaeleT commented Nov 27, 2015

thank you, useful.
Worked both on OSX 10.10.5 and 10.11.1

@kannojia

This comment has been minimized.

Copy link

@kannojia kannojia commented Dec 10, 2015

@webshocker Thanks started working after linking.

@Softsapiens

This comment has been minimized.

Copy link

@Softsapiens Softsapiens commented Dec 25, 2015

Thanks! it worked

@adityashankert

This comment has been minimized.

Copy link

@adityashankert adityashankert commented Jan 7, 2016

thanks man ! amazing :)

@rodvlopes

This comment has been minimized.

Copy link

@rodvlopes rodvlopes commented Jan 18, 2016

thanks @webshocker I had to relink

@jashk

This comment has been minimized.

Copy link

@jashk jashk commented Feb 4, 2016

@webshocker force relink ntfs-3g 💃 thks

@AlpKay

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

@JeanPicard JeanPicard commented Mar 31, 2016

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

@ElisaSchmidt

This comment has been minimized.

Copy link

@ElisaSchmidt ElisaSchmidt commented Apr 2, 2016

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

@jadencp jadencp commented Nov 14, 2016

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

@nhanitvn

This comment has been minimized.

Copy link

@nhanitvn nhanitvn commented Nov 21, 2016

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

@95gabor

This comment has been minimized.

Copy link

@95gabor 95gabor commented Jan 14, 2017

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

@merolhack

This comment has been minimized.

Copy link

@merolhack merolhack commented Mar 20, 2017

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