红联Linux门户
Linux帮助

centos 5.1安装NTFS读写支持

发布时间:2008-01-22 14:49:01来源:红联作者:gxf
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/extras/development/i386/ntfs-3g-1.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。我这里倒是没执行过,如果朋友们遇到了某些问题,可以试试这些方法

[ 本帖最后由 gxf 于 2008-1-22 20:46 编辑 ]
文章评论

共有 5 条评论

  1. pureivan 于 2008-12-08 16:37:08发表:

    === configuring in kernel (/root/Desktop/fuse-2.7.4/kernel)
    configure: running /bin/sh ./configure '--prefix=/usr/local' --cache-file=/dev/null --srcdir=.
    checking for a BSD-compatible install... /usr/bin/install -c
    checking if FUSE is loaded as a module... no
    checking if FUSE module is built into the kernel... no
    checking if FUSE module is from official kernel... no
    checking kernel source directory... Not found
    configure: error:
    *** Please specify the location of the kernel source with
    *** the '--with-kernel=SRCDIR' option
    configure: error: ./configure failed for kernel

    这个又怎么弄?

  2. gxf 于 2008-02-29 21:44:34发表:

    引用:
    configure: error: no acceptable C compiler found in $PATH


    显然是你没有安装gcc

  3. amwssess 于 2008-02-29 20:22:40发表:

    收藏先``有时间再试试安装```谢谢了

  4. cnmt 于 2008-02-29 19:59:08发表:

    我安装时遇到了问题。

    先下载fuse 2.7.2然后解压缩这个文件。。然后点击文件>>在终端中打开。。然后输入以下命令提示:(注:我用的是386版本)
    [cnmt@localhost fuse-2.7.2]$ ./configure --prefix=/usr
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for style of include used by make... GNU
    checking for gcc... no
    checking for cc... no
    checking for cl.exe... no
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details.
    [cnmt@localhost fuse-2.7.2]$ make
    make: *** 没有指明目标并且找不到 makefile。 停止。
    [cnmt@localhost fuse-2.7.2]$ make install
    make: *** 没有规则可以创建目标“install”。 停止。
    [cnmt@localhost fuse-2.7.2]$


    这是啥回事。。新手。请说明白些。谢谢。

  5. relaaxx 于 2008-01-22 15:06:26发表:

    哈哈,收藏先,谢谢分享