CentOS默认是不能挂载NTFS格式的分区的,不过现在的移动硬盘,U盘基本上是格式化成NTFS格式,如果要挂载那么就要使用 ntfs-3g 了
使用fdisk -l 查看 系统中的分区
[root@centos6 ~]# fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd343a3a6
Device Boot Start End Blocks Id System
/dev/sda1 1 38913 312568641 7 HPFS/NTFS
使用 mount 来挂载,提示不能挂载 ntfs
[root@centos6 ~]# mount /dev/sda1 /media/
mount: unknown filesystem type 'ntfs'
安装 ntfs-3g
到 ntfs-3g 下载 最新的ntfs-3g 安装包,并编译安装
wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2012.1.15.tgz
tar zxvf ntfs-3g_ntfsprogs-2012.1.15.tgz
cd ntfs-3g_ntfsprogs-2012.1.15
./configure
make
make install
挂载 ntfs 分区
[root@centos6 opt]# mount -t ntfs-3g /dev/sda1 /mnt/
[root@centos6 opt]# df -h
文件系统 容量 已用 可用 已用%% 挂载点
/dev/sdb3 226G 3.3G 211G 2% /
tmpfs 1000M 0 1000M 0% /dev/shm
/dev/sdb1 194M 25M 159M 14% /boot
/dev/sda1 299G 287G 12G 97% /mnt
OK,挂载成功.
帮了很大的忙。多谢~~~