Mount the NTFS file system in Redhat / Centos

In this article we will discuss how to mount NTFS filesystem in Redhat / Centos. By default we cannot mount the NTFS file system on Linux, but as a Linux administrator it is sometimes mandatory to mount an NTFS partition Linux system to Windows system, then this article is helpful for you. In this article, we discuss how to mount the NTFS file system on Linux.

How to mount the NTFS file system in Redhat / Centos

Before we start the configuration, we first mount the NTFS partition and look at the output.

Mount the NTFS file system in Redhat / Centos

Test by mounting the NTFS file system

As we can see in the snapshot above, a drive formatted with NTFS file system is highlighted blue marking and when we try to mount it, Linux didn’t allow us to do it as marked in Red mark,

Follow the steps to mount the NTFS file system on Linux

Step: 1 Required packages

Required packages: –

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 use the following command to check whether these packages are already installed or not.

#  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 the required packages

We can install packages in two ways: –

Installation with .rpm package For example: –

RPM -ivh Download epel-release-5-4.noarch.rpm for RHEL 5 as follows:

  [[email protected] ~]# 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 following command to install Epel release :

#  rpm -ivh epel-release-xxx.xxx.xx.rpm   # To install epel-release package

Mount the NTFS file system in Redhat / Centos

Install the Epel release package

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

  [[email protected] ~]# 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 following command to install ntfs-3g :

$  rpm -ivh ntfs-3g-xxx.xxx.xx.rpm    # To check if ntfs-3g package is installed or not

Mount the NTFS file system in Redhat / Centos

Install the NTFS-3G package

Installation of yum Package Manager: –

Install yum -y To install EPEL-release 5-4.noarch.rpm from yum:

  [[email protected] ~]# 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!
  [[email protected] ~]#

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

To install ntfs-3g-2011.4.12-5.el5.i386.rpm from yum:

[[email protected] ~]# 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!
  [[email protected] ~]# 

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

Step: 3 Load the backup driver

So we have successfully installed all the necessary packages.fuse”Pass under command.

#  modprobe fuse   # To load the fuse driver

Now it’s done.

Step: 4 Mount the NTFS file system

Let’s check this 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

Mount the NTFS file system in Redhat / Centos

Mount the NTFS drive in fstab

That’s all. In this article we have explained how to do that NTFS Filesystem in Redhat / Centos. I hope you like this article. If you like this article, just share it. If you have any questions about this article, please comment.

Sidebar