Automatically mount the NTFS file system on CentOS7

Source: Internet
Author: User
In CentOS7, what should I do if I want to mount the NTFS file system? We need a NTFS-3G tool and compile it and then mount it, that's simple. First, go to the official website to download NTFS-3G tools

In CentOS 7, what should I do if I want to mount the NTFS file system? We need a NTFS-3G tool and compile it and then mount it, that's simple.

First go to the official website to download NTFS-3G tools

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

1. decompress the package.

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

Tar-xvf ntfs-3g_ntfsprogs-2014.2.15.tgz

2. Compile and install

Go to the ntfs-3g_ntfsprogs-2014.2.15 folder

./Configure & make install

Ps: If the gcc is not displayed, yum install gcc * installs the compiling environment to execute the preceding command.

The preceding command can also be executed three times.

./Configure

Make

Make install

3. Mount NTFS

Mount-t NTFS-3G/dev/sda2/mnt/Windows

Ps: mount becomes invalid after restart.

4. enable automatic NTFS mounting on CentOS 7 (if you do not want automatic mounting, do not do this .)

Change/etc/fstab. back up cp/etc/fstab. bak

/Dev/sda1/mnt/windows NTFS-3G defaults 0 0

Ps: If you do not know the sda number, you can use fdisk-l to view the partition table. The Mount point in/etc/fstab cannot contain spaces. it seems useless even if the space is escaped by \ (it is estimated that the space is not successful). This is my personal experience.

For example, a Mount point in fstab is/mnt/Virtual \ Machines, which is saved and restarted and then directly enters the read-only file system. at this time, you cannot modify the content in fstab, run the following command, and then re-run vi.

Mount-n-o remount, rw/note: There is no space between commas,/There is a space in front.

Then vi fstab deletes the mount point with spaces/mnt/Virtual \ Machines.

If any error occurs, please note that.

Related Article

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.