【亲测】centos7下挂载ntfs文件系统类型的移动硬盘
【参考】
1.http://www.tuxera.com/community/open-source-ntfs-3g/
2.http://www.blogjava.net/freeman1984/archive/2013/05/17/399427.html
3. http://blog.csdn.net/hotday_kevin/article/details/6873162
【流程】
1.wget https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz
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
【附录】
来源:http://www.tuxera.com/community/open-source-ntfs-3g/
Installation
Linux: Most distributions includeand use NTFS-3G by default. Please use that one unless it’s anoldversion. If you wish to install NTFS-3G fromthe source code then make sure you have installed the basicdevelopment tools (gcc compiler, libc-dev libraries). Then type:
./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 NTFS-3GManual for more options and examples.
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
---------------------
作者:沈万三爱搬砖
来源:CSDN
原文:https://blog.csdn.net/yaoqiwaimai/article/details/77162882?utm_source=copy
版权声明:本文为博主原创文章,转载请附上博文链接!