Rob's Rambling

Mounting an NTFS volume in Centos

Posted by Rob July 28, 2009, under Technological Prowess | 3 Comments

 

What a bitch this is to get done. In theory it's pretty easy - especially if you just want read only:

su -

mkdir /mnt/mountpoint

mount -t ntfs /dev/yourdevice /mnt/mountpoint

Seems to work quite well. But what if you want Read/Write? Bit more complicated.

First off, I'm assuming you're using yum. Because I'm using yum and who wouldn't? :D

Second, you need to be at least vaguely familiar with the console side of things in order to get this to work.

 

Step 1

Install and enable the RPMforge Repos by following the handy tutorial at: wiki.centos.org/AdditionalResources/Repositories/RPMForge

Step 2

Make sure you have your kernel-devel installed. Without this there are problems so:

yum install kernel-devel

should set you on the right path.

Step 3

Now we need to install the fuse, ntfs-3g and dkms pacakages thusly:

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

It's only a couple megs in total and once it's done everything will work right according to almost every source on the internet.

Right? Right? 

Wrong.

Try running the following command now:

mount /dev/sda1 /mnt/mountpoint (for example - substitute your own values)

You'll probably get something along the lines of:

"FATAL: Module fuse not found"

But wait? How is this possible? Didn't we just install fuse?

Not quite. DKMS is the final and seemingly undocumented step that has to be run. As far as I can make out, DKMS will install the fuse module when you reboot or when the service runs for some reason.

So, all we need to do in order to complete our install fo NTFS is:

Step 4

Hit up the DKMS installer service!

service dkms_autoinstaller start

or

/etc/init.d/dkms_autoinstaller start

Step 5

Now just to check before we go on and mount the volume, make sure that when you run:

modprobe fuse

You don't receive the same "FATAL: Module fuse not found" error from earlier. That'd be a problem.

Step 6

Assuming everything went well, simply either type:

mount -t ntfs-3g /dev/sda1 /mnt/mountpoint (substitute values)

or edit your fstab to include an appropriate line using ntfs-3g as your file system.

 

Et voila. NTFS writable in Linux.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Twitter

Currently have 3 Comments

  1. what the blazes are you on about.

  2. That is why I love computers, the sense of achievement is wonderful after you done something that should be so logical.

Leave a Reply