---
title: "(转)centos挂载ntfs移动硬盘"
author: "longwang617"
date: "2010-08-27T15:53:35Z"
tags: []
categories: ["操作系统"]
slug: "centos-ntfs"
draft: false
lastmod: "2010-08-27T15:58:10Z"
id: 749061
url: "https://longwang617.iteye.com/blog/749061"
---

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