LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2004, 11:07 AM   #1
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Rep: Reputation: 15
Unhappy insmod gives error message


i have configured a kernel without FAT fs support from a base kernel version 8.This new kernel has ext2 ,ext3 support.now if i copy the fat directory into the second kernel and try to configure it using
./config
error msg : " file/dir not found" appears

if i try to insmod the fat.o of the base kernel into the new kernel(configured from base kernel) the error msg appears
" cannot find kernel version for which module was compiled"

how do i get the fat dir working on my configured kernel?
please help....
 
Old 02-26-2004, 11:29 AM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
When you configure the kernel, with make menuconfig or make xconfig, add the support for the fat filesystem as a module.
It should be in the filesystem section, under DOS/FAT filesystems

Then recompile your kernel.

--Rounan
 
Old 02-26-2004, 11:40 AM   #3
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
could u plz explain a bit more....very very newbie to config....
 
Old 02-26-2004, 01:21 PM   #4
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Well, if you compiled your kernel, at some point you typed
"make menuconfig"
or
"make xconfig"

And got a list of all the options you could compile into the kernel, either directly (* in menuconfig), or as a module (M in menuconfig).
In the Filesystems section, you didn't specify that you wanted to use the fat filesystem. You need to either compile it into the kernel, in which case it's available all the time, or as a module,in which case it will be loaded as you need it.

For more info, read the kernel howto at:
http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO.html

--Rounan
 
Old 02-27-2004, 12:01 PM   #5
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
alright now if fat fs is built as a module....can i use the fat.o formed on another kernel configured without fat fs support configured from the same base kernel?
 
Old 02-27-2004, 12:07 PM   #6
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
possibly, but probably not.

stumbling blocks would be:
The module might not have been compiled with the same specs (cpu optimization, etc) or the same version of GCC as the kernel. This can lead to strange behaviour, something you DEFINATELY don't want with a filesystem.

The kernel might not realise it has a fat module if you didn't put it in the config - in trying to read a fat filesystem, it might decide it can't do it because it wasn't compiled to recognize fat, even if you stick fat.o in /lib/modules/<kernelversion>. I don't know since i've never tried.

Especially since it's a filesystem, just recompile.

--Rounan
 
Old 02-27-2004, 12:33 PM   #7
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
but if i recompile then the kernel wil just build the fat.o on its own....i cant even insmod it and see how it works......:-(
 
Old 02-27-2004, 01:19 PM   #8
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
... if you build it as a module, then you'll get a fat.o built for your kernel. So it'll work with your kernel. I don't see the difference between that fat.o and the one you have now except that the new one will work, and this one might not.
You can still insmod and rmmod the module - it will just be the RIGHT module.

.. I don't think I understand the problem. Perhaps rephrase?

--Rounan
 
  


Reply


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
insmod error 98steve600 Linux - General 1 03-28-2005 04:50 AM
Insmod error Horos23 Linux - Software 2 01-27-2005 11:28 AM
insmod error cstringer18 Linux - Newbie 1 03-01-2004 05:15 PM
Insmod Error and Other Difficulties General_Tso Slackware 21 03-30-2003 03:01 AM
insmod error Rex_chaos Linux - General 4 05-17-2002 11:43 PM


All times are GMT -5. The time now is 01:38 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