#!/bin/bash | |
# remove fuse4x and install ntfs-3g and osxfuse | |
brew remove fuse4x | |
brew install ntfs-3g | |
brew install osxfuse | |
# replace the old one | |
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.old | |
sudo ln -s /usr/local/Cellar/ntfs-3g/*/sbin/mount_ntfs /sbin/mount_ntfs | |
# osxfuse stuff | |
sudo /bin/cp -RfX /usr/local/opt/osxfuse/Library/Filesystems/osxfusefs.fs /Library/Filesystems/ | |
# make it setuid program | |
sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs | |
# sign unsigned kext | |
sudo nvram boot-args="kext-dev-mode=1" |
chmod +x ntfs_write_mode_enabler
In Yosemite you might get the following error if you are updating old osxfuse. As we have enabled developer mode which allows you to run unsigned kext, it will not be a problem.