How to Mount NTFS and exFAT Partition in RHEL CentOS

Mounting NTFS

Mounting NTFS partition in CentOS/RHEL will need a simple trick. Here is the step.
$] sudo yum install epel-release

$] sudo yum install ntfs-3g

Suppose if the name of the device is /dev/sda3 and /dev/sda4, then here is the command to mount it from the terminal
$] sudo mkdir /mnt/WinE

$] sudo mkdir /mnt/WinD

$] sudo mount -t ntfs-3g /dev/sda3 /mnt/WinE  $] sudo mount -t ntfs-3g /dev/sda4 /mnt/WinD
If your windows OS is running with any updates or under hibernation, the above command will not work, Here is the solution for that. You can open the drives under read only mode.

if you get the error like shown above, here is the command 

$] sudo mount -t ntfs-3g /dev/sda3 /mnt/WinE -ro o

$] sudo mount -t ntfs-3g /dev/sda4 /mnt/WinD -ro o
NB: Sometimes you need not type "-t ntfs-3g", if the libraries are there, without this attribute also, the disk will be mounted.
Mounting in RHEL

Mounting exFAT file system

exFAT is another filesystem supported by the Unix families like (Mac OS). CentOS has a way to 
customise for mounting the exfat filesystem.

$] sudo yum install scons gcc fuse-devel rpmbuild
$] wget http://download1.rpmfusion.org/free/el/updates/6/SRPMS/exfat-utils-1.0.1-1.el6.src.rpm 
$] wget http://download1.rpmfusion.org/free/el/updates/6/SRPMS/fuse-exfat-1.0.1-1.el6.src.rpm 

$] rpm -ivh fuse-exfat-1.0.1-1.el6.src.rpm exfat-utils-1.0.1-1.el6.src.rpm 

$] cd ./rpmbuild/SPECS 
$] rpmbuild -ba fuse-exfat.spec 
$] rpmbuild -ba exfat-utils.spec 

$] cd ../RPMS/x86_64/ 
$] rpm -ivh fuse-exfat-1.0.1-1.el6.x86_64.rpm exfat-utils-1.0.1-1.el6.x86_64.rpm 

The following is optional.
$] ln -s /usr/sbin/mount.exfat /sbin/mount.exfat

Again you can click the icon in the explorer to mount the exFAT partition, in the terminal

$] sudo mount -t exfat /dev/sdb2 /mnt/WinC

Comments

Popular Posts