您的位置:首页 > 运维架构 > Linux

Linux系统挂载NTFS格式的文件系统

2014-09-13 09:36 519 查看
当把一个NTFS格式的移动硬盘或U盘插到Linux系统上时,系统会提示无法识别NTFS格式。这就需要第三方的驱动。NTFS-3G 是一个开源的软件,可以实现 Linux、Free BSD、Mac OSX、NetBSD 和 Haiku 等操作系统中的 NTFS 读写支持。

1.在NTFS-3G官网下载

下载地址:http://www.tuxera.com/community/ntfs-3g-download/

2.解压并安装
[delmore@localhost Desktop]$ su
Password:
[root@localhost Desktop]# cd ../Downloads/
[root@localhost Downloads]# tar zxvf ntfs-3g_ntfsprogs-2014.2.15

-------------------------此处略去1000字解压缩过程------------------------------------

[root@localhost Downloads]# cd ntfs-3g_ntfsprogs-2014.2.15
[root@localhost ntfs-3g_ntfsprogs-2014.2.15]# ./configure

-------------------------此处略去1000字配置过程------------------------------------

[root@localhost ntfs-3g_ntfsprogs-2014.2.15]# make
[root@localhost ntfs-3g_ntfsprogs-2014.2.15]# make install


3.挂载

[root@localhost ntfs-3g_ntfsprogs-2014.2.15]# mount -t ntfs-3g -o nls=utf8,umask=000 /dev/sda5 /mnt/win1


说明:

-t 要挂载的文件系统的格式,此处为 ntfs-3g

-o 参数  nls=utf8 设置字符集为utf8,这样就能正常显示中文       umask=000  所有用户可读可写

/dev/sda5  要挂载的文件系统存储器的位置,可使用  /sbin/fdisk -l 命令查看分区及存储器信息。

/mnt/win1  将文件系统挂载到的目录,可在/mnt 目录下自己新建目录用来挂载文件系统。
4.卸载

当不用U盘、移动硬盘时,就使用卸载命令,将存储器退出,此处的卸载是指安全退出存储器,并非将NTFS-3G卸载。
[root@localhost ntfs-3g_ntfsprogs-2014.2.15]# umount /mnt/win1


5.挂载FAT32等格式

挂载FAT32、FAT16格式的文件系统,不需要额外安装软件。

挂载FAT16   mount -t msdos /dev/sda1 /mnt/usb/div>

挂载FAT32   mount -t vfat /dev/sda1 /mnt/usb

挂载EXT2     mount -t ext2 /dev/sda1 /mnt/usb
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  文件系统 linux NTFS