How to read and write NTFS partition formats in Mac OS X lion (10.7)

Source: Internet
Author: User
Tags macbook
Document directory
  • Data storages
  • Paid NTFS Solutions
  • Free NTFS Solution
  • Problems
  • UPD: using native drivers from previous Mac OS X versions to speed up write operations

Reprinted from: http://blog.nolar.info/ntfs-3g-in-mac-os-x-lion-10-7-with-read-write-support/

Let's briefly talk about the content of the article, and read the other details and possible problems in English.

Q: How do I read and write the NTFS partition format in Mac OS X lion (10.7?

Answer:

  • Install two software (* macfuse 64-bit and * NTFS-3G stable.
    • Macfuse 64-bit: https://www.tuxera.com/mac/macfuse/MacFUSE-Tuxera-2.2.dmg
    • NTFS-3G stable: http://sourceforge.net/projects/catacombae/files/NTFS-3G%20for%20Mac%20OS%20X/2010.10.2/
  • If the problem occurs when opening the NTFS-3G ("15 seconds error" prompt, in fact, does not affect the read and write, but this window will pop up to make people hate), download a C program compiled under MAC can be solved.
    • C program: https://gist.github.com/gists/1100318/download
    • After the download, decompress the package in any directory, open the terminal to enter the directory, and copy and paste the file below.
      • sudo mv /usr/local/bin/fuse_wait /usr/local/bin/fuse_wait.orig
      • chmod +x build.sh
      • ./build.sh . /tmp /


NTFS-3G in Mac OS X lion (10.7) with read-write support


UPD 21.08.2011:There is even better way to solve the same issue with native Mac OS X drivers, but it has its own pros and cons. read at the end for details.

UPD 12.09.2011 (important ):Native driver makes NTFS unusable. Read below for details.

Mac OS X lion (10.7) was released recently, in the end of July 2011. and define users had started to complain that their NTFS disks stopped working. and the much worse problem is that "old" solutions do not work well.

But after one or two weeks of researching of this issue, I 've managed to make NTFS work in Mac OS X lion (10.7). The key here is a proper combination of software versions.

So I will shortly describe the usual choices for external data storages, and what problems arises with each of them. and later I will show how you can get the most universal way-NTFS-to work where it does not work by default, with links and pictures.

Data storages

The only reason to worry about this problem is an ability to access external storage drives. Even if these are your own drives and you can select a filesystem to use, that choice is not easy.

There are few possible choices for large (~ 1 Tb) file storages, but each has very unpleasant limitations and issues:

* HFS +/hfsx (or "Mac OS extended"/"Mac OS extended (case sensitive)")-Okay with big volumes and big files, but works natively under Mac OS X and linuxes only. windows need third-party software, which is either free file browser/extractor or paid low-level drivers.

* FAT32 work in each and every OS now, but has limitation for file size up to 4 GB (So, you cannot store DVD image, which is usually 4.5 + GB ).

* Fat64 (exfat) is a new solution, but it works natively only in Mac OS X and Windows 7. older Windows systems (Vista, XP) require service packs and updates to support exfat. linuxes do not support exfat yet at all. more on that, it has only one file table, so if this only place will be written upted on write, I will get all the data lost.

* NTFS. okay with big files an bug volumes. works natively in all Windows systems. works fluently in all Linux systems. has native read-only support in Mac OS X. but has not write support under Mac OS X.

As you can see, in terms of cross-compativility, NTFS is the best choice: It works almost everywhere, and with no limitations. The only issue is write mode in Mac OS X.

Taking into account that you probably have a lot of friends with NTFS volumes, who can visit you and bring you something interesting there, you actually have no choice workt as try to make NTFS working.

So, let's do it.

 

Paid NTFS Solutions

But first, in case you want to make your own research, or you are looking for a solution that just works out of the box, and you are ready to pay for it, you can give a try to Paragon NTFS for Max OS x 9.0 for $19.99 (5-days trial ). that is much cheaper than tuxera NTFS for MAC for $36.02 (with 15-days trial ).

The former one definitely works-I 've tried it in trial. just install and get everything ready: both read and write modes, auto-mount, and also NTFS formatting in Disk utility, disk checking, etc.

I haven't tested the latter one, so you can leave a comment here about your experience with tuxera paid solution.

 

Free NTFS Solution

This free solution requires some efforts. not so much, of course. well, if you are going to make your own research, it can be lots of efforts, since the situation with NTFS-3G is not very clear now.

But if you are just about a ready, copy-n-install solution, it will be easy, and requires only these two or three steps:

* Macfuse 64-bit.

* NTFS-3G stable.

* "15 seconds" error work-around (optional ).

Macfuse 64-bit

First, you need macfuse with 64 bit support. that is the main problem with Mac OS x lion-it uses 64-bit kernel, and all previous version of Mac OS X used 32-bit one. so, old macfuse binaries won't work anymore.

You can get tuxera macfuse 2.2 image for free (cocould not find a page with it, just a download links) or try to compile osxfuse from sources. I 've used the former one.

You can see macfuse preferences in "System Preferences". Well, actually these are not preferences, but only "Update" and "Uninstall" actions, and current version info:

NTFS-3G (stable)

Second, you will need working copy of NTFS-3G. Long story short, NTFS-3G is either already dead or is going to die. There is its ancestor: tuxera NTFS for MAC (paid ).

But we are going to use old version of NTFS-3G-the one from 2010. I 've got one from here. but you can try googling for it, or browse here for this exact version (not 2011-I'm not sure they work ).

I also tried to install later version from macports, but it does not work too: mounts something that Stills unreadable. that is in addition to an error in Installation Process ("MV" does not see the libntfs-3g file or so ).

Now, when you have installed two Binary packages, You can restart Mac OS X and try to attach the drive. It shocould work.

NTFS-3G preferences pane looks populated and interesting:

"15 seconds" error work-around

But it will show you the error message saying that there were not signal in 15 seconds:

This is not a big problem, because everything works fine. Only annoying message box is a problem.

So the third, optional step is to address this issue. you can follow this link: https://gist.github.com/1100318 (see first and the only comment under the Code ). you just download this attached C file, Run "GCC" command line from the comment, and replaces the "fuse_wait" binary as said there. yes, you will need "GCC" here.

And voila! Now you have working NTFS filesystem for free with no "15 seconds" error message. Profit!

Note: The original comments text is attached. Code above: https://gist.github.com/gists/1100318/download

Because of a change in Mac OS X 10.7,fuse_wait(A tool distributed with NTFS-3G for Mac OS X) displays a "15 seconds" timeout error every time a NTFS Volume is mounted.

Download this gist and run the following commands to build and install this unofficial versionfuse_wait, That fixes the issue. Please note that xcode has to be installed for this to work.

sudo mv /usr/local/bin/fuse_wait /usr/local/bin/fuse_wait.origchmod +x build.sh./build.sh . /tmp /

NTFS-3G and other filesystems usingfuse_waitShocould now Mount fine (without the timeout error) and stay mounted. Don't forget that this is just a workaround. This issue has to be fixed in an updated version of NTFS-3G.

To revert to the originalfuse_wait, Run the following command in terminal:

sudo mv -f /usr/local/bin/fuse_wait.orig /usr/local/bin/fuse_wait

I hope this helps.

 

Problems

Nevertheless, Mac OS X is a UNIX-based system. and UNIX-based system is a big problem when they work as desktop OS (earlier I thought that on Linux-based system because of community-driven and crowd-based development concept ). this solution has some problems too. though they are not about the solution itself, but about the components used.

The most important problem now is the speed: With this NTFS-3G on MacBook Air (4 GB, i7 CPU) write speed for USB 2.0 drive is about 3.3 Mb/s. just to compare, the same drive in the same port, but with exfat/fat64 partition can write ~ 38 Mb/s (or fast enough to make exact estimation; will try larger files later ).

Also, immediately following the mount of a drive, there is a line in system log with an error message saying:

8/20/11 6:27:48.394 AM fseventsd: could not open <</Volumes/MYPASSPORT/.fseventsd/fseventsd-uuid>> (No such file or directory)8/20/11 6:27:48.434 AM fseventsd: log dir: /Volumes/MYPASSPORT/.fseventsd getting new uuid: FA7C5FF2-4B57-40CA-9BC6-871C36C13C23

Where mypassport is a volume label. this file exists there, but it is updated each and every time you mount this filesystem. I guess this is because of fuse_wait wrapper, which ignores the signals that filesystem was successfully mounted, and "fseventsd" tries to read the file while filesystem is only being mounted. but it makes no problems, luckily.

 

UPD: using native drivers from previous Mac OS X versions to speed up write operations

There is even better way to solve the same issue with read-write access to NTFS volumes, which involves native drivers from previous Mac OS X versions. it is described in Russian here. credits for this method goCasingFrom macdaily. Me blog.

In a nutshell, you should use classic solution with "/sbin/mount_ntfs" wrapper script (that does not work in lion on its own ), and you shoshould Replace the kernel extension module for NTFs with the one from Mac OS X 10.6.8 (only one binary file:/system/library/extensions/NTFS. kext/contents/MACOs/NTFs ).

To do so, download this archive (mirror: ntfs_enabler.zip), and follow the instructions in "terminal-cmd" text file. do not forget to "Disable" NTFS-3G (globally or for your specific drive) in System Preferences before using this method.

Pros:

  • High Speed of write operations-about 30 Mb/s (compare to 3 Mb/s with NTFS-3G ).
  • Deleted files go to the trash folder rather than deleted instantly as with NTFS-3G.

Cons:

  • Well, this is a hack after all. One day it will stop working.
  • Mac OS X Updates can overwrite your replaced NTFS Driver, and you have to re-install it again.
  • Disk Utility cannot create new NTFS volumes with the native NTFS Driver.
  • If a volume was ungracefuly unmounted in Windows, it will be mounted read-only in Mac OS X, saying this message in System Log:
8/21/11 12:48:43.000 AM kernel: NTFS-fs error (device /dev/disk1s1, pid 4859): ntfs_system_inodes_get(): $LogFile is not clean. Mounting read-only. Mount in Windows.

All the "cons" can be solved by installing NTFS-3G and keeping it disabled all the time, when T When You Need To Format new volume, or to mount a problematic volume. actually, it is better to enable NTFS-3G, mount it with NTFS-3G, then unmount, disable NTFS-3G, and mount it with native drivers; or use "ntfsfix" if you are not afraid of command line after all these hacks

Important UPD 12.09.2011:Please read comments below: People say that this driver makes NTFS filesystem has upted and unusable.

I had the same experience: My NTFS Volume become only partially readable in Mac OS X, and completely unusable in windows. more on that, when I tried to attach the drive, Windows Kernel started to use 100% CPU, and did not stop to do so even when the drive were detached. drive letter never appeared.

Luckily for me, I had two backups of the whole volume (I do so when experimenting with new drives, since I once lost my whole photo archive due to burned out new drive ). to solve the whole problem of NTFS @ Mac, I 've finally bought paragon NTFS for Mac.

  • Category: knowhows
  • Tags: Apple, disk, fat, FAT32, fat64, fuse, HFS, Mac OS X, MacBook, macfuse, NTFS, ntfs-3g, Paragon, partition, storage, tuxera
  • 22 comments
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.