Wednesday, July 13, 2016

Mount NTFS Partition in RHEL/CentOS


Enable NTFS support on CentOS Linux version 5 or 6? 
Mount ntfs partition under RHEL 5 or 6?

First need to install EPEL repo on RHEL / CentOS version 6.x

# cd /tmp
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm


# yum install epel-release-6-5.noarch.rpm

NTFS-3G
NTFS-3G is a stable, open source, GPL licensed, POSIX, read/write NTFS driver for Linux.
It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008 and Windows 7 NTFS file systems.
NTFS-3G can create, remove, rename, move files, directories, hard links, and streams.
it can read and write normal and transparently compressed files, including streams and sparse files.
it can handle special files like symbolic links, devices, and FIFOs, ACL, extended attributes.
moreover it provides full file access right and ownership support.

Install NTFS-3G 


# yum install ntfs-3g


Find Out NTFS Partition Name


# fdisk -l /dev/sda
# fdisk -l /dev/sdb

How to Mount /dev/sda1 NTFS Partition at /mnt/ntfs


load the fuse driver
# modprobe fuse

Create a mount point
# modprobe fuse

mount the ntfs partition, enter:
# mount -t ntfs-3g /dev/sda1 /mnt/ntfs

You can use regular Unix commands to copy or access the files:
df -h
 mount
 cd /mnt/ntfs
cp test /tmp

Unmount NTFS Partition


# umount /mnt/ntfs