Friday, August 2, 2013

HOW TO MOUNT NTFS PARTITIONS IN LINUX(CENTOS6.4)

Ntfs-3g is GPL licensed,cross-palteform and read/write driver used in Linux which  is provides safe handling of files in 
NTFS format. 
The basic requisite is to install the package which facilitate the mounting of nts partition in linux.This utility is provided by ntfs-3g 
package which are available    in EPEL Repository.
 # yum -y install ntfs-3g
The EPEL Repository for CentOS6.4 can be downloaded using following steps.
#wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#rpm -ivh epel-release-6*.rpm
# yum install fuse
With FUSE it is possible to implement a fully functional filesystem in a userspace program.  Features include:
  • Simple library API
  • Simple installation (no need to patch or recompile the kernel)
  • Secure implementation
  • Userspace - kernel interface is very efficient
  • Usable by non privileged users
  • Runs on Linux kernels 2.4.X and 2.6.X
  • Has proven very stable over time


Install and load FUSE driver to mount detected devices
# modprobe fuse
Next,make the directory where the partition is to be mounted.
# mkdir /mnt/ntfs_partition
Temporary mounting can be done by following command.
# mount -t ntfs-3g /dev/sda1 /mnt/ntfs_partition
For permanent mounting make the following entry in /etc/fstab file:
/dev/sdx    /mnt/usb    ntfs-3g        defaults    0    0

where /dev/sdx is hard disk partition with NTFS file system.
Thus, the data can now be accessed by changing directory where partition is mounted.

0 comments:

Post a Comment