Click to See Complete Forum and Search --> : Installing Module into Existing Kernel
Hi everybody,
I'm running Fedora Core 2. Red Hat, for copyright reasons, does not ship the OS with NTFS module installed. I know I can recompile the kernel and install a new kernel with NTFS module. I'm wondering, however, can I install the module into the existing kernel? If so, how? I've already compiled a new version of the kernel and I can see where the module is at (/lib/modules/2.6.5-1.358custom/fs/ntfs/ntfs.ko). Whenver I use modprobe or insmod to try and install the module it tells me:
insmod: error inserting '/lib/modules/2.6.5-1.358custom/kernel/fs/ntfs/ntfs.ko': -1 Invalid module format
Am I doing something wrong? Thanks,
euix
happybunny
06-01-2004, 04:09 PM
can you do a modinfo on that .ko file?
Originally posted by happybunny
can you do a modinfo on that .ko file?
modinfo /lib/modules/2.6.5-1.358custom/kernel/fs/ntfs/ntfs.ko
author: Anton Altaparmakov <aia21@cantab.net>
description: NTFS 1.2/3.x driver - Copyright (c) 2001-2004 Anton Altaparmakov
license: GPL
vermagic: 2.6.5-1.358custom PENTIUMM REGPARM 4KSTACKS gcc-3.3
depends:
happybunny
06-04-2004, 10:16 AM
i've been waiting to reply in an attempt to simulate your situation....but i have bad news...it happens to me too!!
Ill keep working on it.
hard candy
06-04-2004, 10:32 AM
I think if you look at MDWatts's sig he has a link to some precompiled modules for NTFS, if you install the rpm they should work.
bwkaz
06-04-2004, 06:59 PM
But were they compiled for kernel 2.4, or 2.6? If you're using kernel 2.6, you can't load modules that were compiled against 2.4 (even if you rename them to have a .ko extension)...
Originally posted by happybunny
i've been waiting to reply in an attempt to simulate your situation....but i have bad news...it happens to me too!!
Ill keep working on it.
thanx, i really appreciate it. :) i'll keep on messing with it on my end, too.
Originally posted by hard candy
I think if you look at MDWatts's sig he has a link to some precompiled modules for NTFS, if you install the rpm they should work.
i've heard of those precompiled versions in rpm format, but, i want to know how to do it myself so that i don't have to rely on someone else to do it for me. rpms dealing with modules, as i understand it, only work with an exact kernel, any slight changes to ur kernel and the rpm won't install correctly. thanx for the info, however.
Originally posted by bwkaz
But were they compiled for kernel 2.4, or 2.6? If you're using kernel 2.6, you can't load modules that were compiled against 2.4 (even if you rename them to have a .ko extension)...
the module in question was compiled using the source code for the 2.6 kernel.
happybunny
06-06-2004, 06:56 PM
Originally posted by bwkaz
But were they compiled for kernel 2.4, or 2.6? If you're using kernel 2.6, you can't load modules that were compiled against 2.4 (even if you rename them to have a .ko extension)...
Me too...i just installed FC2 with source development stuff....
i did make mrproper
make menuconfig
make modules
make modules_install
and insmod ntfs.ko and got this message.
maybe 2.6 kernel doesn't support NTFS as a module?
Originally posted by happybunny
Originally posted by bwkaz
But were they compiled for kernel 2.4, or 2.6? If you're using kernel 2.6, you can't load modules that were compiled against 2.4 (even if you rename them to have a .ko extension)...
Me too...i just installed FC2 with source development stuff....
i did make mrproper
make menuconfig
make modules
make modules_install
and insmod ntfs.ko and got this message.
maybe 2.6 kernel doesn't support NTFS as a module?
it does support ntfs as a module. i know this because when i do all the stuff u did above and install the new kernel that gets compiled and boot using that it is able to load the module with no problems. the only problem seems to happen when i try to load the module onto the old kernel. both kernels are suppose to be the same (same version, at least).
bwkaz
06-06-2004, 07:48 PM
Originally posted by happybunny
maybe 2.6 kernel doesn't support NTFS as a module? I know it does (I just repeated euix's test on my vanilla 2.6.6 from kernel.org, and it worked great).
However, it wouldn't surprise me if one of Fedora's kernel patches broke this module, or broke the build process for it. Actually, see this link:
http://www.redhat.com/archives/fedora-test-list/2004-May/msg00553.html
That's not exactly the same (the problem in question happened during compilation, not when trying to load the thing), but maybe it's related.
Originally posted by bwkaz
I know it does (I just repeated euix's test on my vanilla 2.6.6 from kernel.org, and it worked great).
However, it wouldn't surprise me if one of Fedora's kernel patches broke this module, or broke the build process for it. Actually, see this link:
http://www.redhat.com/archives/fedora-test-list/2004-May/msg00553.html
That's not exactly the same (the problem in question happened during compilation, not when trying to load the thing), but maybe it's related.
i don't understand, i'm using the source from the kernel development tool kit that comes with fc2. why does the module work if i load it into the new compiled kernel using the source code but not work if i load it into the precompiled version that ships with the os? aren't they suppose to be the same thing?
happybunny
06-06-2004, 09:11 PM
maybe the make modules step is broken in FC2 with the patches?
bkwaz: can you post your module and see if I can add it to my running kernel?
bwkaz
06-06-2004, 09:13 PM
They are supposed to be, yes, but they may not be...
I suppose it's also possible that in 2.6, compiling a module changes the base kernel somehow. Well... no, that's not the case, because I didn't reboot between compiling my 2.6.6's ntfs.ko and loading it.
I don't know. I don't suppose you've asked at fedora's support site or support list (whatever that is), have you? I couldn't find anything when I was searching redhat.com except the link I gave earlier (which isn't exactly the problem).
bwkaz
06-06-2004, 09:21 PM
I already deleted that ntfs.ko, but I can recreate it, hang on.
It's posted at http://kdzbn.homelinux.net/ntfs.ko.bin now. It's too big to attach (but if it was like 2K smaller, it would fit, rats).
Originally posted by bwkaz
They are supposed to be, yes, but they may not be...
I suppose it's also possible that in 2.6, compiling a module changes the base kernel somehow. Well... no, that's not the case, because I didn't reboot between compiling my 2.6.6's ntfs.ko and loading it.
I don't know. I don't suppose you've asked at fedora's support site or support list (whatever that is), have you? I couldn't find anything when I was searching redhat.com except the link I gave earlier (which isn't exactly the problem).
nope, i haven't. :( it's going to sound silly, but, i don't know where i'm suppose to go to get support for it. that's sort of what brought me here.
bwkaz
06-07-2004, 06:49 PM
Originally posted by euix
i don't know where i'm suppose to go to get support for it. that's sort of what brought me here. Heh -- it doesn't sound silly, because I have no idea either (I was hoping you did).
There's nothing in the installation documentation or the other documentation about where to get support? Actually, it may be the case that Fedora doesn't have any support (at least, not from Red Hat specifically), because the support is for people that paid for their distro... hmm...
Though I would still think that there would be a Fedora-specific place to get help, somewhere...