Centos7 in Yum install ntfs3g

Source: Internet
Author: User
Tags aliyun

The CentOS default source does not have the ntfs3g, want to add the NTFS support, just download the compilation installation or add the source Yum installation.

Yesterday re-installed a CentOS7, with the addition of Aliyun Epel source to the Yum installation method, simple.

1. Add Source
Wget-o/etc/yum.repos.d/epel.repo Http://mirrors.aliyun.com/repo/epel-7.repo

2. Installation
# Yum Update;yum Install ntfs-3g
If you are prompted that no packages are available, you can enter
# yum Install ntfs*

Source: Http://mirrors.aliyun.com/help/epel, note that there is no write CentOS7 source, in fact, there are some, the inside of the 5/6 changed to 7 on the line.


The above method is the Yum installation mode, the following talk about other methods and detailed mount


There is no default support for mounting NTFS partitions under CentOS, which can be implemented using NTFS-3G. You can install ntfs-3g with yum, but there is no ntfs-3g in the default Yum library and you need to install Rpmforge first.

First, install the Rpmforge

What is Rpmforge? Rpmforge is a software repository under the CentOS system with over 4,000 packages that are considered by the CentOS community to be the safest and most stable repositories.

1, confirm whether the system installed the priority of the Yum plug-in, the plug-in to ensure that the software when the software warehouse sequencing, generally by default from the official base or mirror installation, and then from the Community user contribute software installed, and then from the third-party software warehouse installation. Of course, this order can be changed by itself, for security and stability, or in accordance with this order ....

#yum Install Yum-priorities

After installation, review the/etc/yum/pluginconf.d/priorities.conf file to confirm that there is a line in the file
[Main]
Enabled=1

2. You can now manually edit the/etc/yum.repos.d/directory in the suffix. repos file to set the order of the Software warehouse (feel I this translation is not very appropriate, priority is still a matter of authority, but can not find a better word, so it) ....

Priority=n (N is an integer, range from 1-99)

The official recommended configuration is
[Base], [addons], [updates], [extras] ... Priority=1
[Centosplus],[contrib] ... priority=2
Third party Repos such as Rpmforge ... priority=n (where N is > based on your preference)

3, now start to install Rpmforge software Warehouse

Download Rpmforge rpm File Pack

32-bit system

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.i686.rpm

64-bit system

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

2. Install rpmforge RPM file Package

RPM-IVH rpmforge-release-0.5.2-1.el6.rf.i686.rpm



Second, installation ntfs-3g

can now be installed directly with Yum: Yum install ntfs-3g



Three, mount NTFS partition with Uninstall

You can use the Fdisk-l command to see the partition of the hard disk, and then/mnt under the new folder you want to mount, such as: Mkdir/winc

Mount directly with the Mount command: Mount-t ntfs-3g/dev/sda1/mnt/winc

Uninstall: Umount/mnt/winc

Note that each directory can only mount one partition, so the D drive should create a new directory under/MNT, such as/wind.

If you want to automatically load the NTFS disk on the boot, edit the/etc/fstab and add a few lines as follows
/dev/sda1/mnt/winc ntfs-3g rw,umask=0000,defaults 0 0
/dev/sda2/mnt/wind ntfs-3g rw,umask=0000,defaults 0 0


This article from "Dongdong Homeland" blog, declined reprint!

Centos7 in Yum install ntfs3g

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.