2011年2月18日 星期五

MAC R/W NTFS by using terminal

step 1 Check you do not install any NTFS R/W application tool.

#sudo find / -name 'ntfs'  

step 2 copy your /sbin file

#sudo cp /sbin/mount_ntfs /sbin/mount_ntfs.orig 



step 3 delete original file & create a new one

#sudo rm -rf /sbin/mount_ntfs
#sudo vi /sbin/mount_ntfs

press  i key and type two lines


#!/bin/sh
/sbin/mount_ntfs.orig -o rw "$@"

press esc key and type :wq


step 4 check you have two file

#sudo ls /sbin/mount*
-rwxr-xr-x  1 root  wheel   35296 11  6 14:29 mount_ntfs
-rwxr-xr-x  1 root  wheel   35296  2 18 15:33 mount_ntfs.orig

step 5

format a NTFS partition on windows and plug in your disk to test files R/W

if you have truble do this to undo and try again from step 1

#sudo cp /sbin/mount_ntfs.orig /sbin/mount_ntfs

0 意見:

張貼留言

 
創用 CC 授權條款