天天看点

linux系统挂载硬盘报错:mount: unknown filesystem type ‘ntfs‘

原因

系统不支持ntfs格式的分区

解决

安装ntfs-3g工具,具体步骤如下

1、下载ntfs-3g_ntfsprogs-xxxx.xx.xx.tgz包,下载地址:

http://www.tuxera.com/community/ntfs-3g-download/
或
wget https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz
           

2、安装

tar zvxf ntfs-3g_ntfsprogs-2017.3.23.tgz
cd ntfs-3g_ntfsprogs-2017.3.23
./configure
make && make install
           

注意:预配置时往往报错

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... configure: error: newly created file is        older than distributed files!
Check your system clock
           

原因是系统时间和实际时间的误差导致的,修改系统时间在重新预配置(当然make gcc gcc-c++等已经安装了)

linux系统挂载硬盘报错:mount: unknown filesystem type ‘ntfs‘

重新进行如下操作就可以了

./configure
make && make install
           

最后再挂载硬盘就成功了

mount -t ntfs-3g /dev/sdb1 /mnt/
           

补充

ntfs与fat32是两种不同的磁盘文件系统格式,实际应用中ntfs常用于电脑移动硬盘等大中型空间容量的磁盘,而fat32多用于u盘、内存卡等小型磁盘

FAT32格式:

FAT32是Windows系统硬盘分区格式的一种。这种格式采用32位的文件分配表,使其对磁盘的管理能力大大增强,突破了FAT16对每一个分区的容量只有2 GB的限制。由于现在的硬盘生产成本下降,其容量越来越大,运用FAT32的分区格式后,我们可以将一个大硬盘定义成一个分区而不必分为几个分区使用,大大方便了对磁盘的管理。目前已被性能更优异的NTFS分区格式所取代。

NTFS格式:

NTFS是Windows NT以及之后的Windows 2000、Windows XP、Windows Server 2003、Windows Server 2008、Windows Vista和Windows 7的标准文件系统。NTFS取代了文件分配表(FAT)文件系统,为Microsoft的Windows系列操作系统提供文件系统。NTFS对FAT和HPFS(高性能文件系统)作了若干改进,例如,支持元数据,并且使用了高级数据结构,以便于改善性能、可靠性和磁盘空间利用率,并提供了若干附加扩展功能,如访问控制列表(ACL)和文件系统日志。

继续阅读