Saturday, October 12

Access Windows NTFS Partition in Linux RHEL/CentOS


      I am Sharing how to, So By Following this you will able to Mount / Access NTFS Partitions / FileSystem
on Red Hat Enterprise Linux 6.x and CentOS 6.x

First, you need to install EPEL repo as described here. The following command will turn in EPEL repo on RHEL / CentOS

# cd /tmp

# wget

# rpm -ivh epel-release-6-5.noarch.rpm


     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,Windows Server 2012, Windows 7 and Windows 8 NTFS file systems.

Install NTFS-3G :

# yum install ntfs-3g  -y

Fuse Install :

# yum install fuse -y
# modprobe fuse

Find NTFS Partition Name :

# fdisk -l 

Out Put:

Device Boot      Start         End      Blocks   Id   System
/dev/sda1   *      1            15      102431    7   HPFS/NTFS

How Do I Mount /dev/sda1 NTFS Partition at /mnt/mahi-ntfs?

Create Mount point /mnt/mahi-ntfs to mount NTFS partition

#mkdir /mnt/mahi-ntfs

To mount the ntfs partition :

# mount -t ntfs-3g /dev/sda1 /mnt/mahi-ntfs

Permanent mount Point :

Open /etc/fstab file enter mount point

#vim /etc/fstab

  /dev/sda1    /mnt/mahi-ntfs    ntfs-3g        defaults    0    0

How Do I Unmount NTFS Partition?

Type the following command

# umount /mnt/mahi-ntfs

Unmount NTFS Partition Permanently :

Open /etc/fstab file , Remove mounted file 

No comments:

Post a Comment

:: Linux - Legends ::