第一種是安裝內核模塊,可到 http://sourceforge.net/projects/linux-ntfs/files/ 下載,需下載與你系統內核想對應的版本,使用uname -a 查看當前內核版本。安裝后就可以使用mount -t ntfs /dev/sda1 /mnt 掛載了。這種方法有個缺點,就是掛載的ntfs分區是只讀的。
另外一種是安裝ntfs-3g,使用ntfs-3g掛載的分區就是可讀寫的了。可在終端下使用 yum install ntfs-3g 安裝。如果找不到軟件包,可能需要修改下更新源,編輯 /etc/yum.repos.d/CentOS-Base.repo ,將內容改為:
[base]
name=CentOS-5 – Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos6
#released updates
[update]
name=CentOS-5 – Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 – Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/addons/$basearch/