How to enable NTFS support on CentOS Linux version 5 or 6? How do I mount ntfs partition under RHEL 5 or 6?
First, you need to install EPEL repo as described here. The following command will turn in EPEL repo on RHEL / CentOS version 6.x:
$ cd /tmp
$ wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
# rpm -ivh epel-release-6-5.noarch.rpm
NTFS-3G
NTFS-3G is a stable, open source, GPL licensed, POSIX, read/write NTFS driver for Linux. It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008 and Windows 7 NTFS file systems.
NTFS-3G can create, remove, rename, move files, directories, hard links, and streams; it can read and write normal and transparently compressed files, including streams and sparse files; it can handle special files like symbolic links, devices, and FIFOs, ACL, extended attributes; moreover it provides full file access right and ownership support.
How Do I Install NTFS-3G?
Type the following command as root user:
# yum install ntfs-3g
Sample outputs:
yum install ntfs-3g Loaded plugins: product-id, rhnplugin, subscription-manager Updating Red Hat repositories. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package ntfs-3g.x86_64 2:2011.4.12-3.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================== Package Arch Version Repository Size =============================================================================== Installing: ntfs-3g x86_64 2:2011.4.12-3.el6 epel 247 k Transaction Summary =============================================================================== Install 1 Package(s) Total download size: 247 k Installed size: 624 k Is this ok [y/N]:
How Do I Find Out NTFS Partition Name?
Simply type the following command:
# fdisk -l /dev/sda
# fdisk -l /dev/sdb
Sample outputs:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0xf0000000
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 14 60802 488281089 5 Extended
/dev/sda5 14 59767 479970304 83 Linux
/dev/sda6 59767 60802 8309760 82 Linux swap / Solaris
How Do I Mount /dev/sda1 NTFS Partition at /mnt/ntfs?
First, load the fuse driver, enter:
# modprobe fuse
Create a mount point, enter:
# mkdir /mnt/ntfs
To mount the ntfs partition, enter:
# mount -t ntfs-3g /dev/sda1 /mnt/ntfs
You can use regular Unix commands to copy or access the files:
$ df -h
$ mount
$ cd /mnt/ntfs
$ cp foo /tmp
How Do I Unmount NTFS Partition?
Type the following command:
# umount /mnt/ntfs
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop















{ 19 comments… read them below or add one }
How to install yum… Tell me process in detail
Great!!
I’m mexican. Your tutorial is very good!!!
Thanks!!!!
Do you have a tutorial to install the drivers for Wiriless Broadcom BCM 4313 in CentOS 6?
Thanks. Greetings!
nice …….usefulll n Thnku
It’d be great if you mentioned that NTFS doesn’t support usual file permissions at all and by default makes everything owned root:root with 777 (rwx for all) permissions.
The only way of preserving any degree of sanity whatsoever is using the uid/gid/umask upon the mount, as described here: http://linux.die.net/man/8/mount.ntfs-3g or making sure the folder above the mount point is only readable/writable by those who are intended to have access.
Do you have a tutorial to install the drivers for Wiriless Broadcom BCM 4313 in CentOS 6? Greetings!!!
very helpful to me thanks great job
Thanks …. good Job
but the unmount is not working……………
tell me how i can unmount it.
Nicely illustrated even 4 newbies… Great work…
This worked flawless!!! Thanks Man!
but fuse driver not installed in our system, it showing fuse module needed.
and also without yum server, it is possible to with rpm command install packages like ntfs-3g.
very usefull dude thank you very much
It help me a lot.
Now i am acessing all windows files using centos
Thanks it me a lot
Does anyone know of a way to compress files on a ntfs partition under linux? GUI or CLI does not matter.
As usual in linux, ” tar -cpzvf compressed.tar.gz FILE or FOLDER ” just like this:
tar -cpzvf foo.tar.gz foo
You can read more on tar by executing “man tar”
Excellent! thanks
404 error coming while downloading