Saturday, March 30, 2013

Mount NTFS file system on Cent OS 6

Tech Blog - Here is a quick howto on mounting NTFS file system on Cent OS 6.

Install the RPMforge repository

For x86_64bit

$wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
$rpm -ivh
rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

For i686
$wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
$rpm -ivh  rpmforge-release-0.5.2-2.el6.rf.i686.rpm

Install NTFS-3g Package
$yum install -y fuse-ntfs-3g.i686

Find you NTFS partition or disk using fdisk -l
[root@localhost ~]# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xadd9ce31

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1698    13631488   27  Unknown
/dev/sda2   *        1698       20501   151041024   83  Linux
/dev/sda3           20501       38451   144179200    7  HPFS/NTFS
 
Then mount the disk or partition
mount -t ntfs /dev/sda3 /mnt
or
mount /dev/sda3 /mnt

Check disk should now be mounted
[root@localhost mnt]# df -k .
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3            144179196 106332300  37846896  74% /mnt
[root@localhost mnt]# 
  

Thats it! 

For suggestion and concerns E-mail