1) 下载ntfs-3g源码,下载地址http://www.tuxera.com/community/ntfs-3g-download/或 http://sourceforge.net/projects/ntfs-3g/
2)解压,本教程以解压路径/opt/tools/ntfs-3g-ntfs-3g为例
cd ntfs-3g-ntfs-3g
./autogen.sh
需要安装apt-get install autoconf libtool
./configure CC=arm-hisiv200-linux-gcc –host=arm-hisiv200-linux –prefix=/home/nfs/ –disable-ntfsprogs
make
cp src/.libs/ntfs-3g /opt/Hi3531_SDK_V2.0.A.0/osdrv/pub/rootfs_glibc/bin/
cp libntfs-3g/.libs/libntfs-3g.so.54 /opt/Hi3531_SDK_V2.0.A.0/osdrv/pub/rootfs_glibc/lib/
挂载测试
ntfs-3g /dev/sda1 /mnt/ntfs
mount -n -t ext3 /dev/sda1 /mnt/ntfs/
USAGE
If there was no error during installation then the NTFS volume can be
read-write mounted for everybody the following way as the root user
(unmount the volume if it was already mounted, and replace /dev/sda1
and /mnt/windows, if needed):
mount -t ntfs-3g /dev/sda1 /mnt/windows
or
ntfs-3g /dev/sda1 /mnt/windows
Please see the ntfs-3g manual page for more options and examples.
You can also make NTFS to be mounted during boot by putting the below
line at the END of the /etc/fstab file:
/dev/sda1 /mnt/windows ntfs-3g defaults 0 0