所有的操作我用的是跟用户进行的。(我在VMWare虚拟机中装的CentOS6.0,但是在自己电脑win7上系统里的虚拟机中配置失败,在公司的XP中配置成功,很无语!!)
查看系统中有没有安装fuse和ntfs-3g这两个软件,如果没有先下载安装。
运行命令:yum install fuse -y 即可完成下载安装。
ntfs-3g需要单独下载。
运行命令:
# yum install wget gcc make
按提示安装即可
安装: tar zxvf ntfs-3g_ntfsprogs-2012.1.15.tgz,执行后得到ntfs-3g-2010.10.2目录
mv ntfs-3g_ntfsprogs-2012.1.15.tgz ntfs-3g 更改目录名字
运行 cd ntfs-3g 进入ntfs-3g目录,
运行
./configure 运行configure文件,编译安装make
make install
安装完成后重启或注销再登录。
运行 fdisk -l命令 查看系统识别到的硬盘,结果如下:
[root@Spring zhengchunxi]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0xc47db7cd
Device Boot Start End Blocks Id System
/dev/sda1 1 6528 52436128+ 2d Unknown
/dev/sda2 6529 60801 435947872+ f W95 Ext'd (LBA)
/dev/sda5 6529 24375 143355996 7 HPFS/NTFS
/dev/sda6 24376 42222 143355996 7 HPFS/NTFS
/dev/sda7 42223 60801 149235786 2d Unknown
Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 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: 0x000d41b0
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 4831 38796288 83 Linux
/dev/sdb2 4831 5222 3145728 82 Linux swap / Solaris
[root@Spring zhengchunxi]#
找到你需要挂载的NTFS格式的硬盘
使用mount命令挂载:mount -t ntfs-3g (NTFS硬盘路径) (挂载路径)例如:mount -t ntfs-3g /dev/sdb5 /mnt/ntfs,可在/mnt/ntfs中看到NTFS格式的硬盘sdb5中的文件。
卸载:umount /mnt/ntfs
没有安装fuse软件,或者没装适合版本的fuse软件 :
fuse device is missing, try 'modprobe fuse' as rootFATAL: Module fuse not found.
ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root
{
Module fuse not found.
modprobe fuse 此命令用来查看系统是否支持fuse
查看系统的内核版本:
# uname –r 因为系统默认的内核并不支持FUSE模块,所以需要更新内核。
更新内核:
yum install kernel*
shutdown -r now 重启计算机
}