LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-16-2008, 07:13 PM   #1
skibler1223
Member
 
Registered: Feb 2008
Distribution: Kubuntu 8.10
Posts: 40

Rep: Reputation: 16
How to: CentOS 5 NTFS


WARNING! - I hold no responsibility for anything you do to your system as a result of this information I have supplied.

IMPORTANT READ!
The result of this guide could potentially cause yum to install packages and/or updates you might not want. I would recommend that you read about the CentOS Plus repository and kernel before proceeding! My server access is purely by SSH, (the box has no more than a power cord and network cables hooked up). Since I have done this I have noticed that the command line is a little choppy. I have not found the cause of this, due to this I am going to again recommend that you back up any data that is important and be prepared in case something doesn't work right.

On to the point of this thing!

I am writing this post because I found quite a few forum posts and articles with problems/solutions to NTFS on CentOS 5. Many solutions proposed were either indirect or did not work for me. My hope is that I can save some other people a little time.

Here is what I did it is very simple and you don't have to even manually recompile your kernel.

Add the Centos Plus repository to your yum config:

Code:
vi /etc/yum.repos.d/CentOS-Base.repo
Find the section that looks like this:

Code:
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
You need to change the line:

enabled=0

to say:

enabled=1

NOTE: The CentOS Wiki has some examples and more in depth option configurations that you may want to look at!
Next use yum to update your system:

Code:
yum update
Once the update has completed, reboot your system and check to see if the ntfs module is available:

Code:
modprobe -l | grep ntfs
If you see:
/lib/modules/2.6.18-53.1.13.el5.centos.plus/kernel/fs/ntfs/ntfs.ko

Then you should be able to mount an ntfs device.

If not then try:
Code:
modprobe ntfs
Then attempt the mount again.

Hopefully this guide helps you!
 
Old 02-16-2008, 08:47 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Nope, one does do not have to do anything changes to the /etc/yum.repos.d/CentOS-Base.repo file;

yum update --enablerepo=centosplus

Besides I prefer to have read/write access to the NTFS partitions not just read only access. The CentOS wiki has a section about using third party repos like RPMforge and installing the ntfs-3g packages;

http://wiki.centos.org/TipsAndTricks/NTFSPartitions
 
Old 03-25-2009, 03:18 PM   #3
Nightfighter89
LQ Newbie
 
Registered: Mar 2009
Location: Wisconsin
Distribution: CentOS
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by Lenard View Post
Nope, one does do not have to do anything changes to the /etc/yum.repos.d/CentOS-Base.repo file;

yum update --enablerepo=centosplus

Besides I prefer to have read/write access to the NTFS partitions not just read only access. The CentOS wiki has a section about using third party repos like RPMforge and installing the ntfs-3g packages;

http://wiki.centos.org/TipsAndTricks/NTFSPartitions
Trying this to resolve NTFS issues I'm having. And ROFL at your sig man. Irony at it's finest.
 
Old 03-26-2009, 09:45 AM   #4
mbrando
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Rep: Reputation: 0
Hi,

I am having similar issues. I followed your steps here and still cannot use NTFS.

root@host [~]# mount -t ntfs-3g /dev/sdb1 /mnt/ntfs
FATAL: Module fuse not found.
ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root
root@host [~]# mount -t ntfs /dev/sdb1 /mnt/ntfs
mount: unknown filesystem type 'ntfs'

Thanks,
Mike
 
Old 03-26-2009, 10:24 AM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by mbrando View Post
Hi,

I am having similar issues. I followed your steps here and still cannot use NTFS.

root@host [~]# mount -t ntfs-3g /dev/sdb1 /mnt/ntfs
FATAL: Module fuse not found.
ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root
root@host [~]# mount -t ntfs /dev/sdb1 /mnt/ntfs
mount: unknown filesystem type 'ntfs'

Thanks,
Mike
did you try installing fuse ?

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

There is an article on the Centos site for this.. you may need to enable a new repo..
http://wiki.centos.org/TipsAndTricks/NTFS
 
Old 03-26-2009, 10:40 AM   #6
mbrando
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by farslayer View Post
did you try installing fuse ?

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

There is an article on the Centos site for this.. you may need to enable a new repo..
http://wiki.centos.org/TipsAndTricks/NTFS
Yes, it appeared to work via yum. but NTFS still does not work for me.

Here is my history:

http://www.linuxquestions.org/questi...58#post3488458

Mike
 
Old 03-27-2009, 10:16 AM   #7
Nightfighter89
LQ Newbie
 
Registered: Mar 2009
Location: Wisconsin
Distribution: CentOS
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by farslayer View Post
did you try installing fuse ?

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

There is an article on the Centos site for this.. you may need to enable a new repo..
http://wiki.centos.org/TipsAndTricks/NTFS
When I run that command it always works for an hour or so (really old computer this is running on) and then quits without another word. I'll try running it verbose and see what that comes up with, get back to ya.
 
Old 03-27-2009, 10:27 AM   #8
mbrando
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Rep: Reputation: 0
Hi,

I'm still interested in figuring this out. However, for now, I formatted the drive vfat so I can use for a sneaker-net drive moving files from a work station to this server.

Mike
 
Old 03-27-2009, 11:22 AM   #9
unixmen
Member
 
Registered: Jan 2009
Posts: 39

Rep: Reputation: 16
Quote:
Originally Posted by mbrando View Post
Hi,

I'm still interested in figuring this out. However, for now, I formatted the drive vfat so I can use for a sneaker-net drive moving files from a work station to this server.

Mike
please try this exlained tutorial , how to add NTFS to you Linux

this is it ===========> LINK
 
Old 03-27-2009, 11:34 AM   #10
mbrando
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by unixmen View Post
please try this exlained tutorial , how to add NTFS to you Linux

this is it ===========> LINK
Hi,

Thanks. That is pretty much what I did in my attempt to add ntfs to my centos server. However, after completing the steps I get a fatal error when mounting and NTFS volume. fuse module not found and I don't see ntfs in my /proc/filesystems either.

Thanks,
Mike
 
Old 03-27-2009, 12:53 PM   #11
Nightfighter89
LQ Newbie
 
Registered: Mar 2009
Location: Wisconsin
Distribution: CentOS
Posts: 10

Rep: Reputation: 0
Quote:
Adding Package dkms - 2.0.20.4-1.el5.rf.noarch in mode u
Killed
The last two lines I got.

I had a monitor and keyboard directly plugged into the server that had fallen asleep during the process but when I revived it it said things along the lines of running out of memory and killing a process having to do with yum. Based on this it seems a reasonable assumption that the only gorram reason I can't complete these installations is the pure shittiness of the machine I am using. Does this sound about right to anyone?
 
Old 03-27-2009, 01:01 PM   #12
mbrando
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Rep: Reputation: 0
Hi,

what are your machines specifications.

I've tried to install on a dual-xenon 4GB RAM box. I dd not get errors but cannot get the modules for fuse or ntfs into the kernel modules area.

Mike
 
Old 03-27-2009, 01:08 PM   #13
jhammer2
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 1
similar fuse not found error

I have followed the the instructions:

http://wiki.centos.org/TipsAndTricks/NTFS

I was running this kernel at the time:

2.6.18-92.1.22.el5xen

and after completing all steps I was able to mount the NT drive just fine.

Then I went to run vmplayer. It can't run on xen kernels, so I rebooted with the non xen kernel 2.6.18-92.1.22.el5.

I can't mount, due to same error above user has reported.

mount -t ntfs-3g /dev/sdb1 /S61
FATAL: Module fuse not found.


I have forgotten about modules long ago, and so my incompetent steps to get it found and loaded were a waste, so I did what I figured would work:

yum erase fuse fuse-ntfs-3g dkms dkms-fuse

followed by

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


Still same problem. I'm now pretty curious. It's been far too long since I have had to troubleshoot modules. All I see with fuse is below, and don't know what to do next.

# find /usr -name fuse -type d -ls

46992401 8 drwxr-xr-x 2 root root 4096 Mar 27 01:14 /usr/src/kernels/2.6.18-92.1.22.el5-xen-i686/fs/fuse
46959473 8 drwxr-xr-x 2 root root 4096 Mar 27 03:01 /usr/src/kernels/2.6.18-92.1.22.el5-i686/fs/fuse
 
Old 03-27-2009, 01:21 PM   #14
Nightfighter89
LQ Newbie
 
Registered: Mar 2009
Location: Wisconsin
Distribution: CentOS
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by mbrando View Post
Hi,

what are your machines specifications.

I've tried to install on a dual-xenon 4GB RAM box. I dd not get errors but cannot get the modules for fuse or ntfs into the kernel modules area.

Mike
Seems I have a 128 chip of RAM and a deactivated swap partition *smacks self over head*. Perhaps if I fix that last one the install will complete. More likely it will just throw some other error at me, but I will consider it progress nonetheless
 
Old 03-27-2009, 01:23 PM   #15
mbrando
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by Nightfighter89 View Post
Seems I have a 128 chip of RAM and a deactivated swap partition *smacks self over head*. Perhaps if I fix that last one the install will complete. More likely it will just throw some other error at me, but I will consider it progress nonetheless
128mb ram should be enough to do an install without a gui via ssh. However, your right activate the swap partition. It should something like 2x your ram in size.

Mike
 
  


Reply

Tags
centos5, ntfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[centos] ntfs access pcandpc Linux - Distributions 15 06-29-2008 10:30 AM
Bug: mounting ntfs in CentOS 5 using ntfs-3g brianmcgee Linux - Enterprise 4 12-27-2007 09:55 AM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM
LXer: CentOS announces CentOS 5 i386 Live CD LXer Syndicated Linux News 0 07-11-2007 07:01 AM
how I can centos ntfs compile? Grave Linux - General 2 12-23-2005 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration