2010年4月14日星期三

How To Enable NTFS R/W In Snow Leopard

NTFS write support was apparently dropped in the final release build of SL. It turns out the support is still there, but disabled by default.

Basically, it’s running mount_ntfs with read/write option specified.

Here’s how it’s done in Terminal:

Rename the original /sbin/mount_ntfs tool by typing:
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig
(press Enter, then type your password in, press Enter)

Create a script by typing:
sudo nano /sbin/mount_ntfs
(press Enter)

Type this:
#!/bin/sh
(press Enter)
/sbin/mount_ntfs.orig -o rw “[email protected]
(press Enter)

Save the script:
(press Ctrl-O, Enter, Ctrl-X in sequence)

Now type this in:
sudo chown root:wheel /sbin/mount_ntfs
(press Enter)
sudo chmod 755 /sbin/mount_ntfs
(press Enter)

Verify by typing:

ls -al /sbin/mount_ntfs
(press Enter)

You should see:
“-rwxr-xr-x” and “root wheel”

Enjoy R/W access to NTFS volumes…

Note:
If it isn’t working for you, it may be that the NTFS partition wasn’t cleanly unmounted previously (e.g. not using safe eject in Windows). To check if this is the case, open Console in Utilities, and go to ‘All Messages’ instead of ‘Console Messages’. Search for ‘ntfs’ and you may come across an error that displays like this:
NTFS-fs error (device /dev/disk3s1, pid 435): ntfs_system_inodes_get(): $LogFile is not clean. Mounting read-only. Mount in Windows.
You need to plug the disk into Windows (XP, VISTA, 7) and do a safe eject. Then the NTFS partition will mount in read/write mode. This is because OS X has no “fsck_ntfs” to repair problems on the NTFS volume to make it “clean” again.
In Windows You can use mountvol : /D to unmount the drive…
==================

In case you don’t like it:

sudo mv /sbin/mount_ntfs.orig /sbin/mount_ntfs
(press Enter)

and everything is back to R/O.

没有评论:

发表评论