How to Mount NTFS File system in RHEL/Centos 7
Table of contents
Descrption
According to Wikipedia , NTFS-File developed by Microsoft . NTFS is s supported in other desktop and Server OS as well Linux & BSD have a free open source NTFS driver called NTFS-3g with both read and write functionality. In Mac-os comes with only read option for NTFS,write option was disabled because it was unstable.
Pre-requrities
Wget(World Wide Web Get)
EPEL Repository
NTFS-3g
NTFS progs
In this tutorial am using RHEL-7 ,before need update all package & repository.
Steps
1. Configure Wget in Server. Wget is a utility and open source,it’s retrived the data using from HTTP,HTTPS & FTP Protocols.
[root@ip-172-31-12-123 ~]# yum install wget -y
To download latest packages using wget
[root@ip-172-31-12-123 ~]# wget dl.fedoraproject.org/pub/epel/epel-release-..
Installing NTFS-3g & NTFSprogs. It Enable NTFS support file managers.
[root@ip-172-31-12-123 ~]# yum install ntfs-3g -y
[root@ip-172-31-12-123 ~]# yum install ntfsprogs -y
Once both packages are configures create a mount directory to plan for NTFS partion disk.
[root@ip-172-31-12-123 ~]#mkdir /winntfs
Here listing out my device
[root@ip-172-31-12-123 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 10G 0 disk
├─xvda1 202:1 0 1M 0 part
└─xvda2 202:2 0 10G 0 part /
xvdf 202:80 0 2G 0 disk
├─xvdf1 202:81 0 32M 0 part
└─xvdf2 202:82 0 2G 0 part
[root@ip-172-31-12-123 ~]# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
xvda
├─xvda1
└─xvda2 xfs 3e11801e-5277-4d87-be4c-0a9a61fbc3da /
xvdf
├─xvdf1
└─xvdf2 ntfs New Volume D072FD6E72FD5A24
Here am mount disk temporarily.
[root@ip-172-31-12-123 ~]# mount -t /dev/xvdf2 /winntfs
To verify the file type
[root@ip-172-31-12-123 ~]# file -s /dev/xvdf2
/dev/xvdf2: x86 boot sector; partition 1: ID=0x72, starthead 13, startsector 1920221984, 1816210284 sectors, code offset 0x52, OEM-ID "NTFS ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 65664, dos < 4.0 BootSector (0x80)
If you want to mount permanently will have to adde a entry in /etc/fstab
[root@ip-172-31-12-123 ~]#vim /etcfstab
/dev/xvdf2 /winntfs NTFS ro,umask=0222,defaults 0 0 (read only Operatiopn)
[root@ip-172-31-12-123 ~]#vim /etcfstab
/dev/xvdf2 /winntfs NTFS rw,umask=0000,defaults 0 0 (read & write Operation).