How to Mount an NTFS Drive on CentOS / RHEL / Rocky Linux

This tutorial will show you how to mount an NTFS drive ina read/write mode on CentOS and other RHEL based Linux operating systems with ntfs-3g driver. NTFS-3G is a stable Open Source NTFS driver that supports reading and writing to NTFS drives on Linux and other operating systems.

The ntfs-3g driver is available in the EPEL repository, it is available for all RHEL-based systems like AlmaLinux, CentOS, Rocky Linux, and also RHEL itself from version 6 to 9. The first step is to install and activate EPEL on your Linux system.

Mount NTFS on RHEL

Enable the EPEL repository

Run the following command as root user on the shell to enable the EPEL repository.

yum install epel-release

EPEL (Extra Packages for Enterprise Linux) is a Fedora Special Interest Group that creates, maintains, and manages a set of additional high quality packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).

Install ntfs-3g driver

Then we have to install the ntfs-3g package with yum.

yum install ntfs-3g

Once installed, we create a directory where the NTFS drive shall be mounted:

mkdir /mnt/win

Now we can mount the NTFS partition by running this command:

mount -t ntfs-3g /dev/sdb1 /mnt/win

In this example, my NTFS partition is the device /dev/sdb1. You have to replace that with the device name of your NTFS partition.

The mount point will exist until reboot or until you unmount it with:

umount /mnt/win

To mount the NTFS partition permanently, add the following line to the /etc/fstab file.

Open /etc/fstab with an editor:

nano /etc/fstab

And add the line:

/dev/sdb1 /mnt/win ntfs-3g defaults 0 0

Again, replace /dev/sdb1 with the device name that matches your setup. Now your Linux system will mount the NTFS drive automatically at boot time.

Share this page:

Suggested articles

12 Comment(s)

Add comment

Comments

By: John at: 2015-09-08 12:25:47

How to mount in default mode which is rw.

By: till at: 2015-09-08 12:34:56

See mount command in the tutorial, it mounts the drive in default mode.

By: abidbajwa at: 2016-12-16 07:53:32

it is very usedull for me and for all linux user thanks

By: dfsogjsfdiog at: 2017-02-21 18:50:38

thanks!!!!!!!!

By: Marcos Morinigo at: 2017-08-27 23:52:21

Omg, thanks you so much, you save me the night. best regards.

By: zamaan at: 2017-09-25 06:30:26

Excellent. Saved me hours...

By: IC at: 2018-11-15 13:33:55

thanks!

By: leoMiranda at: 2019-02-10 20:34:05

Insted of: yum install epel-release

Use: yum -y install epel-release

it work for me

By: till at: 2019-02-11 06:20:47

That's the same command, the only difference is that the first command asks if the package shall be installed while the second one skips the question.

By: jules at: 2019-05-04 22:36:55

merci pour votre tuto assez bien car j'ai resolu un proble de montage de des partition ntfs dans centos que j'ai longtemps cherher sans succes mais aujourd'hui j'ai  reussi. tout fois il me reste la configuration du modeme wifi avec (petit routeur de mtn) avec câble

merci de bien vouloir m'aider

 cordialement

By: yogesh at: 2019-10-18 09:37:23

awesome .. i was searching from 3 weeks later got this link . .. working fine

By: Thomas at: 2020-06-11 15:49:48

This example helped me however it is advised to always mount via UUID if mounting a drive via USB. UUID can be obtained by running "blkid", also to list only block devices run "lsblk". Exampled for fstab UUID mounting can be found via google search. You should also never mount dump and pass with values of 0 0, instead use mount and pass values of 1 2. This will run fsck checks on boots to make sure there are no errors. One side effect to this is that if the fstab mounted drive fails your system wont boot and will boot into emergency mode. To resolve just sign in as root in emergecy mode and edit fstab to comment out the mount line by prepending it with a # or changing dump and pass back to 0 0 temporarily until you can fix or replacer the drive.