实用技巧:Centos 5.1安装NTFS读写支持

摘自: tech.ccidnet.com  被阅读次数: 144


yangyi 于 2008-03-01 20:29:56 提供


CentOS 5默认是不支持挂载NTFS,因此我们需要安装ntfs-3g

1. 安装fuse

建议不要用二进制包安装而应该用源代码安装,我刚开始用二进制包安装总是提示

FATAL: Module fuse not found.
fuse: device not found, try 'modprobe fuse' first
FUSE mount point creation failed

郁闷了一阵子干脆源码安装

首先下载fuse2.72http://sourceforge.net/project/showfiles.php?group_id=121684

然后就是经典的./configure&&make&&make install&&make clean

PS:执行./configure别忘了加参数--prefix=/usr,否则默认安装在/usr/local/lib,这样有需要编辑/etc/ld.so.conf把/usr/local/lib加进去,再执行/sbin/ldconfig,不然安装ntfs-3g会有错误。

2.安装ntfs-3g

这里建议用二进制包安装,免去编译的麻烦

下载地址:ftp://rpmfind.net/linux/fedora/e ... .417-1.fc7.i386.rpm

下载这个版本就行了,高版本f8,f9又需要高版本的glibc库。

3.使用ntfs-3g

man ntfs-3g

mount -t ntfs-3g /dev/sdan /mountpoint

开机地动挂再修改/etc/fstab

[pcman@localhost fuse-2.7.2]$ cat /etc/fstab
LABEL=/1 / ext3 defaults 1 1
LABEL=/home /home ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda8 swap swap defaults 0 0
/mnt/win_D /dev/sda5 vfat defaults 0 0
/mnt/win_E /dev/sda9 ntfs-3g defaults 0 0
/mnt/win_F /dev/sda3 ntfs-3g defaults 0 0

PS:有些文章说需要执行/sbin/mount.ntfs-3g "$@" ,chmod a+x /sbin/mount.ntfs。我这里倒是没执行过,如果朋友们遇到了某些问题,可以试试这些方法。

原文链接: http://tech.ccidnet.com/art/302/20080123/1351651_1.html