How to mount NTFS in CentOs

By default CentOs does not support NTFS partitions. That is a huge pain because if you have iso and lot of stuff inside your NTFS partition and you won't be able to use it.

Installing some tools would do the trick for you.

Step 1
-----------

Installing  rpmforge  repository.

If you already have installed this repository you can skip this step.

If the rpmforge repo is disabled by default, insert following code
yum --enablerepo=rpmforge install fuse fuse-ntfs-3g 


Download Appropriate package

 Open new terminal window and log as root

then insert following code to install GPG key

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 
If an error occurred like following, that means it has already completed.

Change directory to downloaded path.

Install package using

rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
 
  
 
Step 2
-----------


Now install following packages.


yum install fuse fuse-ntfs-3g

You may also need following packages,

yum install ntfs-3g 
yum install ntfsprogs ntfsprogs-gnomevfs  

If you cannot install them that means EEPL repo has been disabled.To enable that repository enter following code.

yum --enablerepo epel install ntfs-3g 

Now you can browse your NTFS partition using file browser. But if you want to mount a partition into a folder you can follow given instructions.

Step 3 (Mounting NTFS Partition)
---------------------------------------------------------------------
Lets say your ntfs partition is /dev/sda3
Create a mount point

Ex: /my/hdd

Then edit /etc/fstab

add following line to fstab

#To read only access
/dev/sda3       /my/hdd  ntfs-3g  ro,umask=0222,defaults 0 0 
 
#To read and write access
/dev/sda3       /my/hdd   ntfs-3g  rw,umask=0000,defaults 0 0 

Save the file.


Now mount the file system.


mount /mymnt/win 

Ok you are done now. :D :D

  


0 comments:

Post a Comment