Pages

Thursday, June 28, 2012

Mounting a NTFS file system

Share it Please

Since Linux supports different File systems than Windows, there is always a problem accessing the windows files in linux.

This article helps you in mounting the ntfs file system on linux and allows accessing the files available on them. The article was written on RHEL 5.4 with Kernel 2.6.18-238.el5.Make sure you download the correct kernel packages.

There is a need for some packages to be installed for this to work. We need to download ntfs-3g and fuse packages. These are available at


For this article purpose, iam attaching the required files.

1. Install the kernel-module-ntfs rpm

[root@vx111a]# rpm -ivh kernel-module-ntfs-2.6.18-128.el5-2.1.27-0.rr.10.11.i686.rpm Preparing... ####################### [100%]
1:kernel-module-ntfs-2.6. ################# [100%]

Use insmod to insert module into the linux kernel at run time.

[root@vx111a]# insmod kernel-module-ntfs-2.6.18-128.el5-2.1.27-0.rr.10.11.i686.ko

Once successful, check for the ntfs

[root@vx111a Desktop]# lsmod | grep ntfs
ntfs                  189080  0

lsmod command shows information about all the loaded modules.

2. Install the ntfs-3g packages

  • tar -zvxf ntfs-3g_ntfsprogs-2012.1.15.tgz
  • cd ntfs-3g_ntfsprogs-2012.1.15
  • ./configure
  • make
  • make install 

3. Install the Fuge package
  • tar -zvxf fuse-2.9.0.tar.gz
  • cd fuse-2.9.0
  • ./configure
  • make
  • make install

4.Execute the modprobe command

Modprobe command Is used to load a single module or a stack of dependent modules.

modprobe fuse

Now the Final Step is to mount the ntfs file system.

 mkdir /mnt/ntfs
 mount -t ntfs-3g /dev/sda1 /mnt/ntfs
 cd /mnt/ntfs/

[root@vx111a ntfs]# pwd
/mnt/ntfs

[root@vx111a ntfs]# ll
total 2097497
rwxrwxrwx 1 root root       4096 Jul  4  2011 DELL
drwxrwxrwx 1 root root       4096 Jul 28  2011 Documents and Settings
-rwxrwxrwx 1 root root          0 Jul  4  2011 MSDOS.SYS
-rwxrwxrwx 1 root root      47564 Apr 14  2008 NTDETECT.COM
-rwxrwxrwx 1 root root     250048 Apr 14  2008 ntldr
drwxrwxrwx 1 root root          0 Aug  2  2011 Oracle
drwxrwxrwx 1 root root          0 Jul 22  2011 RECYCLER
-rwxrwxrwx 1 root root       1242 Apr  5 21:15 smtp.txt
drwxrwxrwx 1 root root       4096 Jul  4  2011 System Volume Information
-rwxrwxrwx 1 root root          0 Jun 20 16:39 t1d8.2
-rwxrwxrwx 1 root root          0 Apr 25 16:53 t1dc.3
drwxrwxrwx 1 root root       4096 Mar  2 17:50 TEMP
-rwxrwxrwx 1 root root     418633 Nov 18  2011 Untitled.sql
drwxrwxrwx 1 root root      86016 Jun 27 17:15 WINDOWS


You can access the files from this location, but windows specific files cannot be accessed.

Download the Files from Here 

Happy learning.