Friday, 17 August 2012

Writing to NTFS on OS X

Out of the box, OS X only supports reading from NTFS drives. The following steps explain how to install and where to find drivers to write to NTFS drives as well. From my experience, this works well on all recent versions of OS X, from Snow Leopard to Mountain Lion.


Step 1

Install osxfuse. For use with NTFS-3G below, make sure to tick the option "Install MacFuse compatibility layer". This is the general framework for extending OS X with new file system drivers.


Step 2

Install NTFS 3g. This is the NTFS driver for use with osxfuse. Make sure to reboot after installing. Writing to NTFS drives should now be possible. 2010.10.2 is the latest version available at the time of writing.


Step 3 (optional)

In Lion and newer you might experience a timeout bug every 15 seconds. This can be remedied with this patch: fuse_wait. To uninstall, simply reinstall the NTFS-3G driver.


More information is available on the osxfuse wiki page.

Tuesday, 7 August 2012

Git difftool

To use your favourite visuall diff-tool with git:

git difftool -t xxdiff HEAD

Or 'HEAD' can be any particular file you want to diff.

git difftool

shows a list of programs it can use... if you happen to have them installed.

There is a thread on stackoverflow that details a few more advanced options, including setting up your own difftool, but I like this one the best, due to its simplicity.