Tuesday, 24 September 2013

NTFS Support on Linux: CentOS and RHEL

NTFS Support on CentOS 6.x

source: http://www.confignotes.com/2013/05/ntfs-support-on-centos-6-x/

Install ntfs-3g.xxx package from EPEL, xxx is the CPU architecture.
To get the epel repo:
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh epel-release-6-8.noarch.rpm
# yum install ntfs-3g
For additional functionality, install ntfsprogs and ntfsprogs-gnomevfs
# yum install ntfsprogs ntfsprogs-gnomevfs

Mounting an NTFS filesystem
Example:
Suppose your ntfs filesystem is /dev/sda2 and you are going to mount it on /mnt/ntfsPart, do the following.
# mkdir /mnt/ntfsPart
Edit /etc/fstab as follows:
To mount read-only:
/dev/sda3 /mnt/ntfsPart ntfs-3g ro,umask=0222,defaults 0 0
To mount read-write:
/dev/sda3 /mnt/ntfsPart ntfs-3g rw,umask=0000,defaults 0 0

Mount it by running:
#mount /dev/sda3 /mnt/ntfsPart

No comments: