How to mount USB disk with NTFS partition in Linux

To Access or Mount Windows/USB &ndash NTFS Partition

Enable EPEL (Extra Packages for Enterprise Linux) Repository and install a tool called NTFS3G to mount any NTFS based file system. NTFS3G is an open source cross-platform, stable, GPL licensed, POSIX, NTFS R/W driver used in Linux. It provides safe handling of Windows NTFS partition file systems viz create, remove, rename, move files, directories, hard links, etc. This tutorial explains the NTFS partition procedure.

To enable EPEL repository

[root@linuxhelp Desktop]# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
--2016-03-26 01:58:45--  http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Resolving download.fedoraproject.org... 66.35.62.162, 67.219.144.68, 152.19.134.198, ...
Connecting to download.fedoraproject.org|66.35.62.162|:80... connected.
...
...
Saving to: “ epel-release-6-8.noarch.rpm” 

100%[======================================> ] 14,540      --.-K/s   in 0.04s   

2016-03-26 01:58:47 (335 KB/s) - “ epel-release-6-8.noarch.rpm”  saved [14540/14540]

[root@linuxhelp Desktop]# rpm -ivh epel-release-6-8.noarch.rpm 
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]

Use the following command to install ntfs-3g package.

[root@linuxhelp Desktop]# yum install -y ntfs-3g
Loaded plugins: fastestmirror, refresh-packagekit, security
....
....
Running Transaction
  Installing : 2:ntfs-3g-2015.3.14-2.el6.x86_64                             1/1 
  Verifying  : 2:ntfs-3g-2015.3.14-2.el6.x86_64                             1/1 

Installed:
  ntfs-3g.x86_64 2:2015.3.14-2.el6                                              

Complete!

To install FUSE

Use the following command to install and load FUSE driver to mount detected devices. FUSE module is included in the kernel itself in version 2.6.18-164 or newer.

[root@linuxhelp Desktop]# yum install fuse
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: epel.mirror.net.in
 * extras: centos.excellmedia.net
 * rpmforge: kartolo.sby.datautama.net.id
 * updates: centos.excellmedia.net
Package fuse-2.8.3-4.el6.x86_64 already installed and latest version
Nothing to do

To Identify NTFS Partition

Use the following command to find out NTFS Partitions in Linux.

[root@linuxhelp Desktop]# fdisk -l
Disk /dev/sdb: 7903 MB, 7903117312 bytes
255 heads, 63 sectors/track, 960 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: 0x0850e7ca

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         961     7716864    7  HPFS/NTFS
Partition 1 has different physical/logical endings:
     phys=(959, 254, 63) logical=(960, 212, 20)

To Mount NTFS partition

Create a mount point to mount the NTFS partition.

[root@linuxhelp Desktop]# mkdir /mnt/ntfs

Use the following command to mount the partition.

[root@linuxhelp Desktop]# mount -t ntfs-3g /dev/sdb1 /mnt/ntfs

After mounting the partition on /mnt/ntfs, you may use regular Linux ls -l command to list the content of mounted filesystem.

[root@linuxhelp Desktop]# cd /mnt/ntfs/
[root@linuxhelp ntfs]# ls -l
total 4251348
-rwxrwxrwx 2 root root 4353378304 Jun 17  2014 CentOS-6.4-x86_64-bin-DVD1.iso

To make mount point permanent at the boot time, then simple add the following line at the end of /etc/fstab file and it will remain as permanent.

/dev/sdb1    /mnt/ntfs      ntfs-3g       defaults    0    0

To Unmount NTFS Partition

Use the following command to unmount the partition.

[root@linuxhelp mnt]# umount /mnt/ntfs
Tag : NTFS
FAQ
Q
What is a command to Format with NTFS FileSystem in Ubuntu?
A
The command to Format the disk into NTFS disk in Ubuntu
Syntax: "udo mkfs.ntfs /dev/sdc1"
Q
How Do I Unmount NTFS Partition?
A
To unmount an NTFS Partition use the following command.
Syntax:"umount /mnt/ntfs".
Q
What is the command to mount NTFS in Linux?
A
The command to mount NTFS in Linux with options are
Syntax: "mount device directory [options]"
Q
What is the command to Identifying partition with NTFS file system in Linux?
A
Command to identify the partition with NTFS file system in Linux.

Syntax:"fdisk -l | grep NTFS "
Q
How to mount a partition with NTFS file system on the Linux operating system?
A
1)Mount NTFS file system read-only access
2)Mount NTFS file system with reading-write access