1、安装fuse
yum install fuse
2、安装ntfs-3g
在http://www.tuxera.com/community/ntfs-3g-download/下载ntfs-3g的源码包
gunzip ntfs-3g-2010.10.2.tgz
tar xvf ntfs-3g-2010.10.2.tar
./configure
make
make install
3、用fdisk -l查看硬盘设备信息。
其中有如下信息:
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 38913 312568641 7 HPFS/NTFS
可以看出/dev/sdb1就是移动硬盘的设备文件
4、在/mnt目录下创建子目录
mkdir /mnt/mobiledisk
5、用mount指令挂载设备
mount -t ntfs-3g /dev/sdb1 /mnt/mobiledisk
6、卸载设备
umount /mnt/mobiledisk