(1)下載下傳安裝軟體包
# cd /opt
# wget http://www.tuxera.com/community/ntfs-3g-download/ntfs-3g_ntfsprogs-2013.1.13.tgz
(2)解壓檔案
# tar -zxvf ntfs-3g_ntfsprogs-2013.1.13.tgz
(3)開始安裝
--進入解壓後的目錄:
# cd ntfs-3g_ntfsprogs-2013.1.13
--配置
# ./configure
--編譯
# make
--安裝
# make install
(4)挂載磁盤
--檢視磁盤:
fdisk -l
挂載磁盤:
mount -t ntfs-3g /dev/sda5 /mnt
(5)自動挂載
用root權限建立/sbin/mount.ntfs檔案,内容如下:
#!/bin/sh
export LANG=en_US.UTF-8
exec /sbin/mount.ntfs-3g "$@"
--給/sbin/mount.ntfs檔案權限
chmod a+x /sbin/mount.ntfs
(6)安裝過程中出現的錯誤
./configure的時候出現錯誤
configure: error: no acceptable C compiler found in $PATH
原因是沒裝gcc
解決辦法:
yum install gcc
本文轉自stock0991 51CTO部落格,原文連結:http://blog.51cto.com/qing0991/1348816,如需轉載請自行聯系原作者