Mounting NTFS Partition on RHEL 5.x

irst Setup RPMForge Repository by running this command :- wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Install DAG’s GPG Key by executing following command:-
rpm – -import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

Verify the package you have downloaded:-
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm

Install the package :-

rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm

or if you dont find packages here try some other repositories like rpmfusion, epel hope you will get it..

after this run yum list command if that runs completely
then Intall gcc packages from your RHEL CD/DVD or any other repository where gcc packages available.

GCC Packages is must for Mounting NTFS.

After GCC installed

run this command :-

yum -y install fuse fuse-ntfs-3g dkms dkms-fuse

if you are running xen kernel then only run this command

yum install kernel-xen-devel

if you are running PAE kernel then only run this command

yum install kernel-PAE-devel

Now Make Entry in your /etc/fstab file

make backup of your /etc/fstab by executing this command

cp /etc/fstab /etc/fstab.bkp

now open your /etc/fstab file in your favorite editor

vim /etc/fstab like below example

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


save & exit from file

Then execute this two commands in exact order

umount -a

mount -a

That’s it. Now You will able to see NTFS by executing df -kh or access your NTFS Volume from your mount point.

VN:F [1.8.1_1037]
Rating: 0.0/10 (0 votes cast)
VN:F [1.8.1_1037]
Rating: -1 (from 1 vote)

  • Share/Bookmark

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

28 Comments »

 
  • Amit says:

    Hi Mr. Tejas

    this is great post from you actually i was trying from 3-4 days but your post done this in less than 15 minutes

    great post man

    Thanks a lot.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Nidheesh.G says:

    Thank you…(success)
    How to mount ntfs Dynamic volume in RHEL 5

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    I dont get your question.

    can you explain please what you exactly want to do ?

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Ajay Saini says:

    Hello Sir,
    I want to mount my NTFS partition fo Linux5.
    I found this link and tried to do that.
    But, I receive an error everytime:
    [root@station160 ~]# umount -a
    umount: /var/lib/nfs/rpc_pipefs: device is busy
    umount: /: device is busy
    [root@station160 ~]#

    Note: I am sending some info of my system.
    like:
    [root@station160 ~]# fdisk -l
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 1958 15727603+ 7 HPFS/NTFS
    /dev/sda2 26109 60800 278663490 f W95 Ext’d (LBA)
    /dev/sda5 26109 28066 15727603+ 7 HPFS/NTFS
    /dev/sda6 28067 30677 20972826 7 HPFS/NTFS
    /dev/sda7 30678 33288 20972826 7 HPFS/NTFS
    /dev/sda8 33289 39815 52428096 7 HPFS/NTFS
    /dev/sda9 39816 39866 409626 83 Linux
    /dev/sda10 39867 52920 104856223+ 83 Linux
    /dev/sda11 52921 53964 8385898+ 82 Linux swap / Solaris
    /dev/sda12 53965 54225 2096451 83 Linux
    /dev/sda13 54226 56658 19543041 83 Linux
    Disk /dev/sdb: 1998 MB, 1998061568 bytes
    255 heads, 63 sectors/track, 242 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sdb1 1 242 1943833+ b W95 FAT32
    [root@station160 ~]#

    [root@station160 ~]# cat /etc/fstab
    LABEL=/ / ext3 defaults 1 1
    LABEL=/boot1 /boot ext3 defaults 1 2
    devpts /dev/pts devpts gid=5,mode=620 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    LABEL=/home1 /home ext3 defaults 1 2
    proc /proc proc defaults 0 0
    sysfs /sys sysfs defaults 0 0
    LABEL=SWAP-sda11 swap swap defaults 0 0
    /dev/sda5 /mnt ntfs-3g defaults 0 0
    [root@station160 ~]#

    Note:
    If you have some solution for this problem,
    Please help me.
    I have to mount NTFS partition on Linux5.
    Thanks & Regards
    Ajay Saini

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    I will try to solve it out.

    First of all tell me did you execute mount -a exact after executing umount -a if not then try to execute this both commands in sequence
    umount -a
    mount -a
    and then go to your cd /mnt and execute your ls command is there files or folders of your NTFS drive?

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Naresh says:

    gr8 man. 1TB hdd with NTFS file system were ordered, i was juggling to mount and steps documented were pretty straight forward and it kept me going with some issues, though these issues were becoz of my system.

    10 on 10 for this solution

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • M Jamal says:

    Gggggrrrreeeeaaatttttt work Mr. Tejas.

    Thank You very much.

    ##################################100% ((((Success)))

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    Congrats !!!!! Keep Visiting Blog. and keep send feedback. Thanks.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Johnny T says:

    Hello,

    I tried your instructions above. It installs all fine, but when mounting, I get

    FATAL: Module fuse not found.

    When I try installing Fuse, it says:

    package fuse-2.7.4-1.el5.rf is already installed

    Any thoughts?

    Thanks

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    By Following these steps you go threw, but than also you are getting error than try to execute modprobe fuse and than try it. Let me know it’s working or not.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Johnny T says:

    Hi, modprobe fuse shows: FATAL: Module fuse not found.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Johnny T says:

    To add:

    [root@....]# /bin/rpm -qa ‘fuse*’
    fuse-2.7.4-1.el5.rf
    fuse-ntfs-3g-2009.4.4-1.el5.rf
    [root@....]# uname -a
    Linux server 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    Hi Did you execute this command yum -y install fuse fuse-ntfs-3g dkms dkms-fuse ? Still if it not works for you than try to install kernel-PAE and follow whole HOWTO may be it works for you .May be it or else i think this problem you are getting because you are running with x64 bit board and my this Howto is for i386 so may be because of this.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Johnny T says:

    Hi, I was able to get it to work, and here’s how…

    Removed both fuse-2.7.4-1.el5.rf and
    fuse-ntfs-3g-2009.4.4-1.el5.rf.

    I then ran yum –enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse

    I appreciate all of your help.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    Thanks for a nice info.It might be help to others also.

    Thanks a lot.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • krishna says:

    Hi,

    Its very Nice document. I have installed in Virtual Mahcine its working fine. When i install in Actual desktop i am getting FATAL: Module fuse not found.
    Even after tring manually doing modprobe fuse still the same result. What mistake i am doing ?

    Regards,
    Krishna

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    can you send me output of thes both command
    rpm -qa | grep fuse and uname -r

    Please send me output of these command. Your errors solutions is in the comments before few days Johnny T was also facing the problem and he posted the solutions here also so read comments hopefully you get the solutions if not let me know

    Thanks

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • krishna says:

    Hi ,

    The o/op you asked is

    1) rpm -qa | grep fuse
    dkms-fuse-2.7.4-1.nodist.rf
    fuse-2.7.4-1.el5.rf
    fuse-ntfs-3g-2009.4.4-2.el5.rf

    2) uname -r
    2.6.18-8.el5xen

    Regards,
    Krishna

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • kunta says:

    Dear sir,

    Thank you profusely for the post, because it did help me. I would advise anyone to make sure a command works before they put the command in the /etc/fstab file. Just my two cents on the question.
    What I mean is, because editing the /etc/fstab, one should actually run the
    mount -t ntfs /dev/sdax /mnt
    and make sure that this works before one umounts and re-mounts everything.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Pankaj says:

    hello sir,

    i have follow the above steps but still i am unable to mount ntfs partition on CentOS 5.3
    below is the details

    [root@localhost ~]# rpm -qa ‘fuse*’
    fuse-2.7.4-1.el5.rf
    fuse-ntfs-3g-2009.4.4-2.el5.rf
    [root@localhost ~]# uname -r
    2.6.18-128.el5xen
    [root@localhost ~]# uname -a
    Linux localhost.localdomain 2.6.18-128.el5xen #1 SMP Wed Jan 21 11:55:02 EST 2009 i686 i686 i386 GNU/Linux
    [root@localhost ~]#

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    Look at the comments below. I hope you find your solutions.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Pradeep says:

    Gr8 work….!!! I already did it successfully, but my problem is
    how to make ntfs partitions auto-mount on system boot ??
    I think i am facing some problem with root permission, as on starting RHEL 5.2, i get something like
    “ntfs-3g-mount : fuse device is missing”
    “try modprobe fuse as root”
    But works fine when i manually mount the partitions……

    Any help…….

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    Can you please tell me what is entry in your fstab file?

    UA:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UA:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • [...] Click on Below link to Continue Reading at Ask4 IT Solutions ( IT Solutions Provider India) Click on this link to continue reading :- http://blog.ask4itsolutions.com/2009/01/02/mounting-ntfs-partition-on-rhel/ [...]

  • TT says:

    Using http://dag.wieers.com/ repo works!!! Awesome post.

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    Thanks a lot

    UA:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UA:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Don Kamote says:

    Thanks a lot for this very helpful blog.

    Success!!!!!

    UN:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
  • Tejas Barot says:

    Thanks a lot. Keep visit this blog.

    UA:F [1.8.1_1037]
    Rating: 0.0/5 (0 votes cast)
    UA:F [1.8.1_1037]
    Rating: 0 (from 0 votes)
 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>