In this article, you will learn how to mount an NTFS drive on Centos/RHEL?
If you want to
mount a partition or a hard disk drive, which is formatted using the
NTFS filesystem, you have to install the
ntfs-3gpackage. This package is available through the
EPEL repository. It is the essential package to mount the ntfs filesystem.
Generally, this problem comes when you try to mount the drive, which formatted using ntfs. And it is easy to fix this problem.
So you can follow the steps. Let’s fix ntfs drive mount in Linux.
Installing and enabling EPEL repository
Step 1: To install and enable epel-repository, run the below command.
yum -y install epel-release
Installing ntfs-3g package
Step 2: Install the ntfs-3g package, run the below command.
yum -y install ntfs-3g
Mounting NTFS drive
Step 3: Create a directory where you want to mount that ntfs drive. In the below example I’m going to create a directory in
/home/sahil with the name
Checking the partition name for mounting
Step 4: First you have to check your ntfs partition name, in my case, it is
/dev/sda1 and mount point which I have created
myntfsdrive, you can replace the name of
ntfs partition with your
ntfs partition name and mount point.
mount -t ntfs-3g /dev/sda1 /home/sahil/myntfsdrive
Mounting ntfs drive permanently
Step 5: To mount it
permanently (even after reboot it will remain mounted), you have to add this in fstab. So let’s edit fstab with vi editors or you can use any other editors as per your choice.
Step 6: So, add the below line but change as per your
drive name and
/dev/sda1 /home/sahil/myntfsdrive ntfs-3g defaults 0 0
Step 7: If you want to make changes effect without restarting the system then you can use below command,
In conclusion, you learned to mount the NTFS drive in Linux, which applies to CentOS and RHEL and Fedora any version. I hope you understand, but if you have any questions, you can ask in the comment section.
Also, you can read further,