Mount NTFS file systems with NTFS 3G

Tuxera provides a stable read/write NTFS driver for Linux though their NTFS 3G. The driver provides the ability to mount Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008 and Windows 7 NTFS file systems. You can download the driver from the link below.

http://www.tuxera.com/community/ntfs-3g-download/

In this post we will configure and install the 3.6 version of the driver. We will extract, configure, make and install.

[root@wrath ejenkinson]# tar -xvf ntfs-3g-2010.3.6.tgz 
ntfs-3g-2010.3.6/
ntfs-3g-2010.3.6/AUTHORS
ntfs-3g-2010.3.6/depcomp
ntfs-3g-2010.3.6/config.sub
ntfs-3g-2010.3.6/README
ntfs-3g-2010.3.6/install-sh
ntfs-3g-2010.3.6/ltmain.sh

...Output cut...

ntfs-3g-2010.3.6/include/ntfs-3g/logfile.h
ntfs-3g-2010.3.6/ChangeLog
ntfs-3g-2010.3.6/COPYING
ntfs-3g-2010.3.6/config.h.in
[root@wrath ejenkinson]# cd ntfs-3g-2010.3.6

Issue ,/configure

[root@wrath ntfs-3g-2010.3.6]# ./configure 
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p

...Output cut ...

config.status: creating libntfs-3g/libntfs-3g.script.so
config.status: creating src/Makefile
config.status: creating src/ntfs-3g.8
config.status: creating src/ntfs-3g.probe.8
config.status: creating src/ntfs-3g.usermap.8
config.status: creating src/ntfs-3g.secaudit.8
config.status: creating config.h
config.status: executing depfiles commands
You can type now 'make' to build ntfs-3g.
[root@wrath ntfs-3g-2010.3.6]# 

Next we issue the make command.

[root@wrath ntfs-3g-2010.3.6]# make
make  all-recursive
make[1]: Entering directory `/home/ejenkinson/ntfs-3g-2010.3.6'
Making all in include
make[2]: Entering directory `/home/ejenkinson/ntfs-3g-2010.3.6/include'
Making all in ntfs-3g
make[3]: Entering directory `/home/ejenkinson/ntfs-3g-2010.3.6/include/ntfs-3g'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ejenkinson/ntfs-3g-2010.3.6/include/ntfs-3g'
Making all in fuse-lite
make[3]: Entering directory `/home/ejenkinson/ntfs-3g-2010.3.6/include/fuse-lite'

...Output cut...

gcc -DFUSE_USE_VERSION=26 -I../include/fuse-lite -I../include/ntfs-3g -g -O2 -Wall -o .libs/ntfs-3g ntfs_3g-ntfs-3g.o  ../libntfs-3g/.libs/libntfs-3g.so -lpthread  -Wl,--rpath -Wl,/usr/local/lib
creating ntfs-3g
make[2]: Leaving directory `/home/ejenkinson/ntfs-3g-2010.3.6/src'
make[2]: Entering directory `/home/ejenkinson/ntfs-3g-2010.3.6'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/ejenkinson/ntfs-3g-2010.3.6'
make[1]: Leaving directory `/home/ejenkinson/ntfs-3g-2010.3.6'
[root@wrath ntfs-3g-2010.3.6]# 

After the successful make we issue the make install.

[root@wrath ntfs-3g-2010.3.6]# make install
Making install in include
make[1]: Entering directory `/home/ejenkinson/ntfs-3g-2010.3.6/include'
Making install in ntfs-3g

...Output cut...

/usr/bin/install -c -m 644 'README' '/usr/local/share/doc/ntfs-3g/README'
make[2]: Leaving directory `/home/ejenkinson/ntfs-3g-2010.3.6'
make[1]: Leaving directory `/home/ejenkinson/ntfs-3g-2010.3.6'
[root@wrath ntfs-3g-2010.3.6]# 

Mount the volume. Noticed that the driver detected that the last the file system was used it was not cleanly dismounted.

[root@wrath ntfs-3g-2010.3.6]# mount -t ntfs-3g /dev/sdb1 /media
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
[root@wrath ntfs-3g-2010.3.6]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      432G   17G  393G   4% /
/dev/sda2              93M   19M   70M  22% /boot
tmpfs                 3.9G     0  3.9G   0% /dev/shm
/dev/sdb1             466G  252G  215G  54% /media
[root@wrath ntfs-3g-2010.3.6]# 

Note that mount the NTFS file system using the driver, ntfs-3g needs to be passed.

2 thoughts on “Mount NTFS file systems with NTFS 3G”

Leave a Reply

Your email address will not be published. Required fields are marked *