【亲测】centos7下挂载ntfs文件系统类型的移动硬盘
【参考】
【流程】
2.解压,配置,编译,安装
$tar zxvf ntfs-3g_ntfsprogs-2017.3.23.tgz
$ cdntfs-3g_ntfsprogs-2017.3.23/
#./configure
#make
#make install
3.使用
一定要搞清楚自己的移动硬盘对应的设备,否则挂载失败!!!
查看设备
#fdisk -l
自己的移动硬盘对应设备/dev/sdc1
开始挂载
# mount -t ntfs-3g /dev/sdc1 /mnt/windows
现在进入/mnt/windows目录,即是移动硬盘的根目录
特别注意:以下步骤尽量不要操作,因为一旦你设置了开机自动挂载的话,在你开机重启的过程中,如果你的移动硬盘没有连接到电脑的话,会导致系统无法正常启动!因为启动过程中,它会执行/etc/fstab文件内的内容,但是你的移动硬盘又恰好没有连接的话,执行你添加的挂载语句就会出错,导致无法正常进入系统!
如果想要开机自动挂载的话,可以编辑/etc/fstab文件
# vi/etc/fstab
在文件末尾添加一行
/dev/sda1 /mnt/windowsntfs-3g defaults 0 0
【附录】
Installation
Linux: Most distributions includeand use NTFS-3G by default. Please use that one unless it’s an
./configuremakemakeinstall# or 'sudo makeinstall' if you aren't root
Non-Linux: Please see the OS specific installationand source packages above.
Usage
If there was no error duringinstallation then the NTFS volume can be mounted in read-write modefor everybody as follows. Unmount the volume if it had already beenmounted, replace /dev/sda1 and /mnt/windows, if needed.
mount -t ntfs-3g /dev/sda1/mnt/windows
Please see the
You can also make NTFS to bemounted during boot by adding the following line to theendof the /etc/fstab file:
/dev/sda1 /mnt/windowsntfs-3g defaults 0 0