How To Mount NTFS File System In Redhat/Centos

In this article, we are going to discuss How To Mount NTFS File System In Redhat/Centos. By default in Linux Operating System we can’t mount the NTFS file system, but as a Linux Administrator some time it’s becomes mandatory to mount NTFS partition, OR Suppose we have dual booting of Windows and Linux and if you want to copy something from your Linux system to windows system then this article is helpful for you. So in this article, we are going to discuss how to mount the NTFS file system in Linux.

How To Mount NTFS File System In Redhat/Centos

How To Mount the NTFS File System In Redhat/Centos

Before we start the Configuration First we will mount the NTFS Partition and let’s see what is the output.

How To Mount NTFS File System In Redhat/Centos

Testing by mounting NTFS File System

As we can see on the snapshot above we have one NTFS file system formatted drive highlighted in blue mark and when we are trying to mount it Linux not allowed us to do that as marked in red mark.

Follow the Steps to Mount NTFS File System in Linux

Step: 1 Required Packages

Packages Required:-

epel-release-5-4.noarch.rpm              # For RHEL/CentOS 5
ntfs-3g-2011.4.12-5.el5.i386.rpm     #  For RHEL/CentOS 5

Before that, we can check if these packages are already installed or not by the below command.

#  rpm -qa | grep epel-release    # To check if epel-release package is installed or not
#  rpm -qa | grep ntfs-3g    # To check if ntfs-3g package is installed or not

Step: 2 Install Required Packages

We can install packages in two ways:-

Installation by .rpm Package For Example:-

rpm -ivh <Package Name>

Download epel-release-5-4.noarch.rpm for RHEL 5 as shown below :

  [root@localhost ~]# wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  
  --2016-11-16 23:12:23--  http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  Resolving dl.fedoraproject.org... 209.132.181.24, 209.132.181.23, 209.132.181.26, ...
  Connecting to dl.fedoraproject.org|209.132.181.24|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: 12232 (12K) [application/x-rpm]
  Saving to: `epel-release-5-4.noarch.rpm'

  100%[======================================================================>] 12,232      44.0K/s   in 0.3s    

  2016-11-16 23:12:24 (44.0 KB/s) - `epel-release-5-4.noarch.rpm' saved [12232/12232]

Run the below command to install epel-release  :

#  rpm -ivh epel-release-xxx.xxx.xx.rpm   # To install epel-release package
How To Mount NTFS File System In Redhat/Centos

Installing epel-release Package

Download ntfs-3g-2011.4.12-5.el5.i386.rpm for RHEL 5 as shown below :

  [root@localhost ~]# wget http://dl.fedoraproject.org/pub/epel/5/x86_64/ntfs-3g-2011.4.12-5.el5.i386.rpm
  
  --2016-11-16 23:12:34--  http://dl.fedoraproject.org/pub/epel/5/x86_64/ntfs-3g-2011.4.12-5.el5.i386.rpm
  Resolving dl.fedoraproject.org... 209.132.181.24, 209.132.181.23, 209.132.181.26, ...
  Connecting to dl.fedoraproject.org|209.132.181.24|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: 326518 (319K) [application/x-rpm]
  Saving to: `ntfs-3g-2011.4.12-5.el5.i386.rpm'

  100%[======================================================================>] 326,518      102K/s   in 3.1s    

  2016-11-16 23:12:38 (102 KB/s) - `ntfs-3g-2011.4.12-5.el5.i386.rpm' saved [326518/326518] 

Run the below command to install ntfs-3g :

$  rpm -ivh ntfs-3g-xxx.xxx.xx.rpm    # To check if ntfs-3g package is installed or not
How To Mount NTFS File System In Redhat/Centos

Installing NTFS-3g Package

Installation by yum Package Manager:-

yum -y install <Package Name>

Install epel-release-5-4.noarch.rpm by yum :

  [root@localhost ~]# yum -y install epel-release   # To install the epel-release package
 
  Loaded plugins: fastestmirror
  Loading mirror speeds from cached hostfile
   * addons: centos.mirror.net.in
   * base: centos.mirror.net.in
   * extras: centos.mirror.net.in
   * updates: centos.mirror.net.in
  addons                                                                                   | 1.9 kB     00:00     
  base                                                                                     | 1.1 kB     00:00     
  extras                                                                                   | 2.1 kB     00:00     
  updates                                                                                  | 1.9 kB     00:00     
  Setting up Install Process
  Resolving Dependencies
  --> Running transaction check
  ---> Package epel-release.noarch 0:5-4 set to be updated
  --> Finished Dependency Resolution

  Dependencies Resolved

  ================================================================================================================
   Package                        Arch                     Version                 Repository                Size
  ================================================================================================================
  Installing:
   epel-release                   noarch                   5-4                     extras                    12 k

  Transaction Summary
  ================================================================================================================
  Install       1 Package(s)
  Upgrade       0 Package(s)

  Total download size: 12 k
  Downloading Packages:
  epel-release-5-4.noarch.rpm                                                              |  12 kB     00:00     
  Running rpm_check_debug
  Running Transaction Test
  Finished Transaction Test
  Transaction Test Succeeded
  Running Transaction
    Installing     : epel-release                                                                             1/1 

  Installed:
    epel-release.noarch 0:5-4                                                                                     

  Complete!
  [root@localhost ~]#

As we can see in the output above epel-release-5-4.noarch.rpm installed successfully

Install ntfs-3g-2011.4.12-5.el5.i386.rpm by yum :

[root@localhost ~]# yum -y install ntfs-3g   # To install the ntfs-3g package

  Loaded plugins: fastestmirror
  Loading mirror speeds from cached hostfile
   * addons: centos.mirror.net.in
   * base: centos.mirror.net.in
   * epel: epel.mirror.net.in
   * extras: centos.mirror.net.in
   * updates: centos.mirror.net.in
  epel                                                                                     | 3.6 kB     00:00     
  epel/primary_db                                                                          | 2.4 MB     00:44     
  Setting up Install Process
  Resolving Dependencies
  --> Running transaction check
  ---> Package ntfs-3g.i386 2:2011.4.12-5.el5 set to be updated
  --> Finished Dependency Resolution

  Dependencies Resolved

  ================================================================================================================
   Package                  Arch                  Version                             Repository             Size
  ================================================================================================================
  Installing:
   ntfs-3g                  i386                  2:2011.4.12-5.el5                   epel                  319 k

  Transaction Summary
  ================================================================================================================
  Install       1 Package(s)
  Upgrade       0 Package(s)

  Total download size: 319 k
  Downloading Packages:
  ntfs-3g-2011.4.12-5.el5.i386.rpm                                                         | 319 kB     00:03     
  warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
  epel/gpgkey                                                                              | 1.7 kB     00:00     
  Importing GPG key 0x217521F6 "Fedora EPEL " from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
  Running rpm_check_debug
  Running Transaction Test
  Finished Transaction Test
  Transaction Test Succeeded
  Running Transaction
    Installing     : ntfs-3g                                                                                  1/1 

  Installed:
    ntfs-3g.i386 2:2011.4.12-5.el5                                                                                

  Complete!
  [root@localhost ~]# 

As we can see on the output above ntfs-3g-2011.4.12-5.el5.i386.rpm installed successfully.

Step: 3 Load Fuse Driver

So we successfully installed all required packages, now let’s go ahead and load the “fuse” drive-by below command.

#  modprobe fuse   # To load the fuse driver

Now it’s done.

Step: 4 Mount the NTFS File System

Let’s check by mounting the NTFS drive with the mount command.

#  mount -t ntfs-3g /dev/sdb1 /mnt   # To mount NTFS partition

#  df -h   # To check mounted devices
How To Mount NTFS File System In Redhat/Centos

Mounting NTFS Drive in fstab

That’s all, In this article, we have explained How To Mount the NTFS File System In Redhat/Centos. I hope you enjoy this article. If you like this article, then just share it. If you have any questions about this article, please comment.

Share this:

Mangesh Dhulap

This is Mangesh Dhulap the Founder and Editor of IT SMART TRICKS have 6+ years of Industrial Experience. We expect from our visitors to like, share, and comment on our posts.

You may also like...

1 Response

  1. Sergio says:

    For CentOS 5??????
    jaja

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.