CentOS挂载移动硬盘


1, 首先确认fuse,CentOS 5.5 带有fuse,可以使用 rpm -qa | grep fuse 查看是否安装。

[root@localhost ntfs-3g-2010.5.22]# rpm -qa | grep fuse
fuse-2.7.4-8.el5

说明已经安装fuse

如果没有显示,请执行

[root@localhost ntfs-3g-2010.5.22]#yum install fuse

2,安装ntfs-3g, 系统默认的软件库更新不到ntfs-3g,可以自己下载编译安装。
下载网址:http://www.tuxera.com/community/ntfs-3g-download/

下载完后安装,安装方法下载点有。

简单介绍一下, 下载后解压

[root@localhost packages]# tar -zxvf ntfs-3g-2010.5.22.tgz

进入解压后的目录

[root@localhost packages]# cd ntfs-3g-2010.5.22
[root@localhost ntfs-3g-2010.5.22]#

文件夹中的文件  

[root@localhost ntfs-3g-2010.5.22]# ls
aclocal.m4    config.h       configure.ac  INSTALL       m4           README
AUTHORS       config.h.in    COPYING       install-sh    Makefile     src
autogen.sh    config.log     COPYING.LIB   libfuse-lite  Makefile.am  stamp-h1
ChangeLog     config.status  CREDITS       libntfs-3g    Makefile.in
compile       config.sub     depcomp       libtool       missing
config.guess  configure      include       ltmain.sh     NEWS
[root@localhost ntfs-3g-2010.5.22]#

接着依次执行    

[root@localhost ntfs-3g-2010.5.22]#./configure
[root@localhost ntfs-3g-2010.5.22]#make
[root@localhost ntfs-3g-2010.5.22]#make install

完了之后就可以正常mount ntfs 文件了

[root@localhost ntfs-3g-2010.5.22]# mount -t ntfs-3g /dev/sda2 /mnt
[root@localhost ntfs-3g-2010.5.22]# ls /mnt
centos    RECYCLER                                vm2k3
IDE       System Volume Information               vmdesk
Incoming  TDDOWNLOAD                              w2003SP2.iso
kankan    the brothers four                       windows 
music     Ubuntustudio-10.04-alternate-amd64.iso  读书
news      vm

卸载移动硬盘请执行[root@localhost ntfs-3g-2010.5.22]#umount /mnt

相关内容