RHEL / CentOS Linux: Mount and Access NTFS Partition

How to enable NTFS support on CentOS Linux version 5 or 6? How do I mount ntfs partition under RHEL 5 or 6?

First, you need to install EPEL repo as described here. The following command will turn in EPEL repo on RHEL / CentOS version 6.x:
$ cd /tmp
$ wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
# rpm -ivh epel-release-6-5.noarch.rpm


NTFS-3G is a stable, open source, GPL licensed, POSIX, read/write NTFS driver for Linux. It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008 and Windows 7 NTFS file systems.

NTFS-3G can create, remove, rename, move files, directories, hard links, and streams; it can read and write normal and transparently compressed files, including streams and sparse files; it can handle special files like symbolic links, devices, and FIFOs, ACL, extended attributes; moreover it provides full file access right and ownership support.

How Do I Install NTFS-3G?

Type the following command as root user:
# yum install ntfs-3g
Sample outputs:

yum install ntfs-3g
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ntfs-3g.x86_64 2:2011.4.12-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package         Arch           Version                     Repository    Size
 ntfs-3g         x86_64         2:2011.4.12-3.el6           epel         247 k

Transaction Summary
Install       1 Package(s)

Total download size: 247 k
Installed size: 624 k
Is this ok [y/N]: 

How Do I Find Out NTFS Partition Name?

Simply type the following command:
# fdisk -l /dev/sda
# fdisk -l /dev/sdb

Sample outputs:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf0000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              14       60802   488281089    5  Extended
/dev/sda5              14       59767   479970304   83  Linux
/dev/sda6           59767       60802     8309760   82  Linux swap / Solaris

How Do I Mount /dev/sda1 NTFS Partition at /mnt/ntfs?

First, load the fuse driver, enter:
# modprobe fuse
Create a mount point, enter:
# mkdir /mnt/ntfs
To mount the ntfs partition, enter:
# mount -t ntfs-3g /dev/sda1 /mnt/ntfs
You can use regular Unix commands to copy or access the files:
$ df -h
$ mount
$ cd /mnt/ntfs
$ cp foo /tmp

How Do I Unmount NTFS Partition?

Type the following command:
# umount /mnt/ntfs

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 36 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
36 comments… add one
  • ashish laxkar Sep 19, 2011 @ 6:21

    How to install yum… Tell me process in detail

    • Mike Sep 3, 2015 @ 1:57

      Yum will already be installed if it is CentOS or RHEL. Yum is the default package installer on these repos, and non-RHEL linuxes tend to use apt-get or similar. If this is what your Linux is, you’ll need to find an equivalent guide for that distro.

  • TuxTux Sep 20, 2011 @ 0:55

    I’m mexican. Your tutorial is very good!!!

  • TuxTux Sep 20, 2011 @ 0:57

    Do you have a tutorial to install the drivers for Wiriless Broadcom BCM 4313 in CentOS 6?
    Thanks. Greetings!

  • Paul Sep 24, 2011 @ 6:51

    I loved the articles. I did not know about the concept of small laptops.

  • vinod tungale Sep 25, 2011 @ 11:20

    nice …….usefulll n Thnku

  • Jack Wade Oct 7, 2011 @ 21:25

    It’d be great if you mentioned that NTFS doesn’t support usual file permissions at all and by default makes everything owned root:root with 777 (rwx for all) permissions.

    The only way of preserving any degree of sanity whatsoever is using the uid/gid/umask upon the mount, as described here: http://linux.die.net/man/8/mount.ntfs-3g or making sure the folder above the mount point is only readable/writable by those who are intended to have access.

    • TuxTux Oct 7, 2011 @ 21:58

      Do you have a tutorial to install the drivers for Wiriless Broadcom BCM 4313 in CentOS 6? Greetings!!!

  • amit patel Oct 27, 2011 @ 18:55

    very helpful to me thanks great job

  • Kalpesh Patel Oct 27, 2011 @ 18:55

    Thanks …. good Job

  • Arif Dec 11, 2011 @ 10:19

    but the unmount is not working……………
    tell me how i can unmount it.

    • nurul huda mustaqim Mar 11, 2016 @ 14:07

      just type “umount -l “

  • Krishna Pandey Apr 9, 2012 @ 13:25

    Nicely illustrated even 4 newbies… Great work…

  • JackHamm3r Apr 10, 2012 @ 2:42

    This worked flawless!!! Thanks Man!

  • santosh Apr 20, 2012 @ 14:49

    but fuse driver not installed in our system, it showing fuse module needed.
    and also without yum server, it is possible to with rpm command install packages like ntfs-3g.

  • FAROOQ Apr 24, 2012 @ 4:19

    very usefull dude thank you very much

  • ambrish May 25, 2012 @ 11:20

    It help me a lot.

    Now i am acessing all windows files using centos

  • ambrish May 25, 2012 @ 11:21

    Thanks it me a lot

  • JordanDovahkiin Jun 19, 2012 @ 13:39

    Does anyone know of a way to compress files on a ntfs partition under linux? GUI or CLI does not matter.

    • Mohamed Aug 4, 2012 @ 4:30

      As usual in linux, ” tar -cpzvf compressed.tar.gz FILE or FOLDER ” just like this:

      tar -cpzvf foo.tar.gz foo

      You can read more on tar by executing “man tar”

  • Vikram Kamath Oct 31, 2012 @ 16:01

    Excellent! thanks

  • amir Nov 24, 2012 @ 12:12

    404 error coming while downloading

  • Franco Aug 22, 2013 @ 14:32

    doesn’t work for me, i use:

    wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
    rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
    yum install ntfs-3g
    • massy Nov 22, 2013 @ 14:50

      Thank you, I used it, too.

  • james Nov 10, 2013 @ 12:27

    We have centos 6.4 x86-64
    we need to download and install rpm’s by hand because our compters are not connected to the internet.

    Can you tell us where to download the ntfs RPM and how to get it to install.

    thank you.

  • Yubraj Bhattarai Dec 19, 2013 @ 7:48

    Thanks a lot.
    it eorking good.

  • UncaAlby Dec 20, 2013 @ 0:26

    [root@localhost Desktop]# yum install ntfs-3g
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
    * base: mirror.ash.fastserv.com
    * extras: mirror.steadfast.net
    * updates: http://ftp.usf.edu
    Setting up Install Process
    No package ntfs-3g available.
    Error: Nothing to do

    • Scott Jan 12, 2014 @ 23:43

      the mirror that was chosen didn’t have it… so try another / again. if yum keeps choosing the same mirror(s) that don’t have it then exclude the mirror(s) using the instructions in the site below. also, if you don’t have the latest fastestmirror RPM then install it (yum update yum-plugin-fastestmirror, yum clean, yum update)

  • Scott Jan 12, 2014 @ 23:20

    nearly everything worked as instructed. i couldn’t get the wget command to work so i just went to the site, which redirected me… the epel RPM is now located at linux.mirrors.es.net/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm.
    it would be nice, as previously suggested, if instructions were provided for changing file ownership / permission before or after mount… but i (personally) do not need to make adjustments.

  • zamaan Jan 25, 2014 @ 9:12

    worked charm!!!

  • Salem Ben Afia Apr 18, 2014 @ 13:58

    Epel link is dead. Please replace it with the 6.8 one.

    Thank you for this post.

  • Salem Ben Afia Apr 18, 2014 @ 14:00

    Sorry again for disturbing, to find out ntfs disks, you can use:
    fdisk -l | grep “ntfs”

  • Riadh May 6, 2014 @ 4:50

    The link referred by wget redirects to an inexistent path / file.
    Location of the rpm has changed since this article was posted.

  • Fekensa Jun 13, 2014 @ 7:01

    Thanx ur great

  • KRISHNA ARYAL Oct 20, 2014 @ 5:49

    Greate work, thanks for support and best for new commers.


  • DIOUF May 19, 2015 @ 15:57

    on my RHEL7 virtual machine VMMWARE, when i do the mount command on the sda1 volume, an error occured :
    “mount is denied because the NTFS volume is already exclusively opened”
    an idea ?
    thanks !

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum