Pages

Sunday, June 3, 2012

How to mount Windows Volume to Centos versions 5

Windows Volumes are basically partition with NTFS file format. So Its different from Linux file system. after we done this we have both read and write access to the mounted ntfs windows volume.


Step1 - Install EPEL Repo
Before you do anything you have to install EPEL repo on Centos 5.x

#su root
#cd /opt
#wget http://mirror01.th.ifl.net/epel//5/i386/epel-release-5-4.noarch.rpm
#rpm -ivh epel-release-5-4.noarch.rpm

Step2 - Install NTFS-3G and fuse
NTFS-3g is a drive that provide read, write, access to ntfs volumes.
Fuse is a optional driver that needs for mount NTFS volume to the Linux. this is install in centos by default but however its good to check whether we got any updates.

#su root
#yum install ntfs-3g
#yum install fuse

Step3 - mount ntfs volume into the Centos
make sure partition name.
#/sbin/fdisk -l


load the fuse driver
#/sbin/modprobe fuse

Create a mount pointer
#mkdir /mnt/ntfs

Mounting the NTFS partition. In my example my partion name is /dev/sda3
#mount -t ntfs-3g /dev/sda3 /mnt/ntfs

done.
Furthermore you can use following commands for access mounted volume or  getting further details

#cd /mnt/ntfs
#df -h

If you want to unmount the ntfs volume, type follwoing command
#umount /mnt/ntfs