Mount the NTFS file system under CentOS 7 and automatically mount the boot

Source: Internet
Author: User


What should I do if I want to mount the NTFS file system under CentOS 7? We need a ntfs-3g tool and compile it after mount on it, it's that simple.

First go to the official website to download ntfs-3g tools

http://www.tuxera.com/community/ntfs-3g-download/

1. Unzip after download


wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2014.2.15.tgz

TAR-XVF ntfs-3g_ntfsprogs-2014.2.15.tgz


2. Compiling and installing

Go to the ntfs-3g_ntfsprogs-2014.2.15 folder


./configure && make && make install 


ps:如果提示没有gcc,则yum install gcc* 将编译环境安装好在执行一次上面的命令

The above command can also be completed in three times.


./configure

Make

Make install


3.挂载NTFS


mount -t ntfs-3g /dev/sda2  /mnt/Windows


ps:mount重启之后就会失效


4.CentOS 7 boot automatically mounts NTFS (of course, if you do not want to automatically mount the, you can do this step.) )

Change/etc/fstab, change before backup under Cp/etc/fstab/etc/fstab.bak


/dev/sda1 /mnt/windows ntfs-3g defaults 0 0


ps:如果不知道是sda几,用fdisk -l 查看下分区表就可以了。


If there is any mistake, please point out.

Reference article:

Http://blog.rekfan.com/articles/137.html

http://www.tuxera.com/community/ntfs-3g-download/




This article is from the "Bckong" blog, make sure to keep this source http://bckong.blog.51cto.com/5092126/1570507

Mount the NTFS file system under CentOS 7 and automatically mount the boot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.