Many of us use external hard-disks for data storing, and backup.Generally all the external hard-disks are of NTFS format only, if you have used it on Windows earlier. using it on Linux will sometimes be a problem.
One of the best things about Ubuntu is, it automatically detects a NTFS file system, and auto mounts it in most of the cases.
But this is not the case in CentOS or Fedora or Redhat. In these distros, we need to manually mount the hard-disk, and since Linux does not recognize NTFS file system, it will show and error when you try to directly mount it using ‘mount -t
‘ command.
To mount an NTFS drive in Redhat distros, we need an additional package named ‘ntfs-3g‘. We need to install ntfs-3g and then use it to mount the NTFS drive. So lets see how to mount ntfs in CentOS!
Downloading Repository for ‘ntfs-3g’.
If you already have latest repo, skip next three steps.
cd /etc/yum.repos.d
The ‘ntfs-3g’ package is not a part of the originalepel repo that we get after installation. So we need to download the latestepel repo and upgrade our repo. So change your directory to ‘/etc/yum.repos.d’wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-base-6.8.noarch.rpm
Use wget to download the new repo.rpm -Uvh epel-release-6-8.noarch.rpm
Upgrade your existing repo with the new downloaded repo.
Installing ‘ntfs-3g’
yum install fuse fuse-ntfs-3g
You can either use ‘fuse’ or just put ‘yum install ntfs-3g’
If you get a ‘nothing to do’ error, you have downloaded the wrong repository. Check it again.
Mounting Windows Disk.
mkdir /mnt/windows
mount -t ntfs-3g /dev/sdb1 /mnt/windows
Create a new directory where you’ll mount the files of ntfs disk.
‘mount -t ntfs-3g
(source) (destination) ‘
Use the command as mentioned above. It will work completely fine!