CentOS 挂载NTFS分区的两种方法
<p>第一种是安装内核模块,可到 http://sourceforge.net/projects/linux-ntfs/files/ 下载,需下载与你系统内核想对应的版本,使用uname -a 查看当前内核版本。安装后就可以使用mount -t ntfs /dev/sda1 /mnt 挂载了。这种方法有个缺点,就是挂载的ntfs分区是只读的。</p>
<p>
另外一种是安装ntfs-3g,使用ntfs-3g挂载的分区就是可读写的了。可在终端下使用 yum install ntfs-3g 安装。如果找不到软件包,可能需要修改下更新源,编辑 /etc/yum.repos.d/CentOS-Base.repo ,将内容改为:</p>
<p>
</p>
<p>
name=CentOS-5 – Base</p>
<p>
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os</p>
<p>
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/</p>
<p>
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/os/$basearch/</p>
<p>
gpgcheck=1</p>
<p>
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos6</p>
<p>
#released updates</p>
<p>
</p>
<p>
name=CentOS-5 – Updates</p>
<p>
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates</p>
<p>
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/updates/$basearch/</p>
<p>
gpgcheck=1</p>
<p>
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5</p>
<p>
#packages used/produced in the build but not released</p>
<p>
</p>
<p>
name=CentOS-5 – Addons</p>
<p>
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons</p>
<p>
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/addons/$basearch/</p>
頁:
[1]