Fixing the fix for NTFS drives on Mac OS X (10.10 Yosemite)
A friend had a troublesome external Hard drive that wouldn’t work. It wouldn’t mount in Mac OS X, having some corruption issues and being an NTFS format drive.
Disk Utility helpfully said:
Verify and Repair volume “xxxxxxxx”Repairing file system.** /usr/local/bin/ntfsfix has been disabled because of volume corruption issues.
** If you still want to try fixing your volume, use /usr/local/bin/ntfsfix from the command line…
File system check exit code is 250.Updating boot support partitions for the volume as required.Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
Plugging it into my Windows 7 Virtual Machine didn’t let me do anything to fix it.
So I tried running sudo /usr/local/bin/ntfsfix as suggested (I had used Disk Utility’s ‘info’ function to identify the drive as /dev/disk5s1), only to encounter this:
dyld: Library not loaded: /usr/local/lib/libntfs.9.dylib
Referenced from: /usr/local/bin/ntfsfix
Reason: image not found
I updated various ports I thought might help but to no avail. Finally I looked inside /usr/local/lib/ and discovered that I have a file called libntfs.9.0.0.dylib but not libntfs.9.dylib. I typed
ln -s libntfs.9.0.0.dylib libntfs.9.dylib
to create a link to the file where the ntfsfix program expected it and thereafter the ntfsfix command works as it should. Something seems to have broken in OS X 10.10 Yosemite, but it just requires a quick link to work.
That said, I haven’t managed to resurrect the volume yet. Posting this because I got no helpful hits reporting the dyld (Dynamic Loader) error above.