LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to: CentOS 5 NTFS (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-centos-5-ntfs-621688/)

skibler1223 02-16-2008 07:13 PM

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!

Lenard 02-16-2008 08:47 PM

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

Nightfighter89 03-25-2009 03:18 PM

Quote:

Originally Posted by Lenard (Post 3059810)
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.

mbrando 03-26-2009 09:45 AM

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

farslayer 03-26-2009 10:24 AM

Quote:

Originally Posted by mbrando (Post 3488466)
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

mbrando 03-26-2009 10:40 AM

Quote:

Originally Posted by farslayer (Post 3488503)
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

Nightfighter89 03-27-2009 10:16 AM

Quote:

Originally Posted by farslayer (Post 3488503)
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.

mbrando 03-27-2009 10:27 AM

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

unixmen 03-27-2009 11:22 AM

Quote:

Originally Posted by mbrando (Post 3489673)
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

mbrando 03-27-2009 11:34 AM

Quote:

Originally Posted by unixmen (Post 3489734)
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

Nightfighter89 03-27-2009 12:53 PM

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?

mbrando 03-27-2009 01:01 PM

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

jhammer2 03-27-2009 01:08 PM

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

Nightfighter89 03-27-2009 01:21 PM

Quote:

Originally Posted by mbrando (Post 3489823)
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 :p

mbrando 03-27-2009 01:23 PM

Quote:

Originally Posted by Nightfighter89 (Post 3489840)
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 :p

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


All times are GMT -5. The time now is 10:43 AM.