PDA

View Full Version : NTFS-module för FC2 Test2


MacLeod
23rd April 2004, 02:45 PM
Hi,

I have installed FC2 Test2 after trying out alot of distros and i like this one very much. I only have a 56k modem so i have not updated the kernel, just some minor apps through yum.

I do have som NTFS-partitions on my computer and i hate to boot XP and burn them to CD whenever i need some files.

Is there anyone who has a module for NTFS to my kernel?
(don't have the kernel version right now, am at work. but it is the stock kernel from the CD's of FC2 test2)

Or if i can recompile my kernel with NTFS support. But i haven't done that anytime before so i need help then. ;)

Hope anyone can help me cause i really like this distro.


Thanks

Jimmy

SuperNu
23rd April 2004, 03:02 PM
If you have the kernel-source RPM (i386.rpm, not src.rpm) and a few files from the Linux NTFS Project Page (http://linux-ntfs.sourceforge.net/), then you can build your own. Just look over the instructions here (http://linux-ntfs.sourceforge.net/rpm/build.html), download the .spec and build files and you should be set. I have built my own in the past instead of waiting for the new releases, and so far, I haven't had any problems.

--SN

MacLeod
23rd April 2004, 05:34 PM

Well, i did what it sad here.
http://fedoranews.org/contributors/hernan_fernandez/ntfs/

The kernel i have is linux-2.6.3-2.1.253.2.1.

I get this when i try to load the modules,

[root@localhost linux-2.6.3-2.1.253.2.1]# /sbin/modprobe ntfs FATAL: Error inserting ntfs (/lib/modules/2.6.3-2.1.253.2.1/kernel/fs/ntfs/ntfs.ko): Invalid module format

Anyone who know what i could have done wrong. I followed the tut. above exept i did copy the ntfs.ko insted of ntfs.o.

SuperNu
23rd April 2004, 09:12 PM
I use the directions from http://linux-ntfs.sourceforge.net/rpm/build.html and I never had a problem. Try these directions out and see if they work for you.

--SN

MacLeod
23rd April 2004, 09:30 PM
I tried it and it didn't work.

[root@localhost jimmy]# ./build-2.4 kernel-ntfs.spec kernel-source-2.6.3-2.1.253.2.1.i386.rpm i686

Using: kernel-ntfs.spec

Building modules for kernel: 2.6.3-2.1.253.2.1
Extracting source... done
Optimising Makefile... done
Optimising fs/Makefile... done

Building: i686
make distclean... done
make oldconfig... done
make dep... done
make modules... failed. Giving up.
[root@localhost jimmy]#

Any idea what to do? :(

MacLeod
25th April 2004, 02:47 AM
I just got it to work... :D

When i had added NTFS with menuconfig it changed the EXTRAVERSION in Makefile. So i had to edit the file to the right kernel version i was running, it had added custom efter the version.

Then i just needed to compile it and install the module.

Check this url, http://www.redhat.com/archives/fedora-test-list/2003-October/msg00668.html

Jman
25th April 2004, 05:30 AM
Note that the Linux NTFS project won't release Fedora 2 rpms until the official release.

MacLeod
25th April 2004, 12:13 PM
Yepp, i know that. :-)

Thats why i needed to compile the module my self, cause i really need to be able too access my NTFS-partitions.

sju59
25th April 2004, 06:33 PM
MacLeod, I am having the same problem that you were having. I'm running Fedora Core2 Test2. I tried editing the Makefile with the correct kernel version, but its still not working. Could you copy that line from the makefile for me? Thanks.

sju59
25th April 2004, 08:54 PM
I figured it out. I was putting in the full kernel version number when it just needed the extension. Thanks.

MacLeod
25th April 2004, 08:55 PM
Sure, this is how the first lines look in my Makefile.
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 3
EXTRAVERSION = -2.1.253.2.1
NAME=Feisty Dunnart

# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
# More info can be located in ./README
# Comments in this file are targeted only to the developer, do not
# expect to learn how to build the kernel reading this file.

# Do not print "Entering directory ..."
MAKEFLAGS += --no-print-directory

Hope this vill help.

Before i edited it, it would look like this:
EXTRAVERSION = -2.1.253.2.1custom

MacLeod
25th April 2004, 08:55 PM
hehe... Great... I was just one minute to late... :D

MacLeod
2nd May 2004, 12:01 PM
When i compiled my modules it genereted both .o and .ko.
And if i am getting it alright the *.o is used in 2.4.x but in 2.6.x they changed so kernelmodules called *.ko insted.

Correct me if i wrong.

But if you compiled new modules with a 2.6-kernel you should have gotten both *.o and *.ko.

Please post the errors and someone should be able to help you.

yaekee
2nd May 2004, 02:25 PM
The platform is FC2T3.
I had installed the default kernel source code linux-2.6.5-1.327, I just make mrporper; make menuconfig;
and chose the ntfs module;
make modules(I not make bzImage because I think that is not necessary), but to my surprise, it only compile the .o modules not the .ko modules which I want to install.
I think maybe i will post my .config, but it is too long.
Is that detailed?

Bana
3rd May 2004, 02:29 AM
Please see http://www.fedoraforum.org/forum/showthread.php?s=&postid=9237#post9237 for the continuation of yaekee's problem (I split it so as to organize a bit).