LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-19-2008, 05:25 AM   #1
bree
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
Failed to add module to kernel


Hi, I used slackware with kernel:
2.6.13.2

I wanted to set up an nfs client in the PC; however when i mount the nfs, it return the error msg:
mount: unknown filesystem type 'nfs'

I have checked my /proc/filesystem, it does not have nfs entry.

Based on my searching on the net, I try to add the nfs module to the kernel.
Here is what I did:
#make menuconfig
-->marking the filesystem-nfs (M)
-->save it to ./config file
#make
#make modules_install

I check my /lib/modules/2.6.13.2/kernel/fs, it does not have nfs module (*.ko) file.
and modprobe nfs return:
Fatal: module nfs not found

Have I done something wrong?
Pls help
 
Old 02-19-2008, 01:16 PM   #2
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Rep: Reputation: 33
Did you move your new kernel to your /boot directory? When you recompile your existing kernel and add modules and such, I believe you also have to replace the kernel image to reflect these new modules. Whenever I either compile a new kernel, or add functionality to an exiting one, these are the steps that I usually take:
Code:
1. Run 'make menuconfig' from the /usr/src/linux-(version) directory.
2. Make the necessary configuration changes.
3. Save the changes and leave the menu configuration.
4. Run 'make && make modules_install' (all on one line)
5. When kernel is successfully compiled, perform the following:
   'cp /arch/i386/boot/bzImage /boot/vmlinuz-(version)'
   'cp .config /boot/config-(version)
   'cp System.map /boot/System.map-(version)
6. Add an entry in my lilo.conf file for this new kernel.
7. Save the changes to lilo.conf, and run '/usr/sbin/lilo'.
8. If there are no errors from lilo, reboot into new kernel.
There may be a more efficient manner to perform this process, but this has worked for me since I have been using Slackware for about 10 years or so (mostly off and on). I do not know how familiar you are with Slackware, but I would suggest that you read the Slackware Handbook at http://www.slackersbible.org for more information on Slackware, and for instructions on kernel compilation and such.
 
Old 02-20-2008, 12:12 AM   #3
bree
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Is there any way to do it without rebooting the system?

I have try using modprobe but it was unsuccessful.
 
Old 02-20-2008, 08:07 AM   #4
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Rep: Reputation: 33
Once you have a new kernel compiled and implemented, you have no other alternative but to boot into it. Is there any reason why you cannot reboot the system? Is this a server?
 
Old 02-21-2008, 01:24 AM   #5
bree
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Yes it is a server. It's current kernel is already operational and works fine, so basically it is not new; however I just need to add a module that not included in it.

So is it possible to do it without re booting the server?

PS:Sorry for being stubborn since I prefer not to disturb the other user
 
Old 02-21-2008, 07:42 AM   #6
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Rep: Reputation: 33
As I mentioned, you need to boot into the new kernel for this to take effect. The configuration of your existing kernel was not set up with the particular module you had recently compiled and installed. I would suggest scheduling some downtime and then rebooting into this new kernel. There is not other way that I know of.
 
Old 02-21-2008, 08:19 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,968
Blog Entries: 28

Rep: Reputation: 2236Reputation: 2236Reputation: 2236Reputation: 2236Reputation: 2236Reputation: 2236Reputation: 2236Reputation: 2236Reputation: 2236Reputation: 2236Reputation: 2236
Hi,
Quote:
Originally Posted by bree View Post
Yes it is a server. It's current kernel is already operational and works fine, so basically it is not new; however I just need to add a module that not included in it.

So is it possible to do it without re booting the server?

PS:Sorry for being stubborn since I prefer not to disturb the other user
Whenever I test a new kernel or modify something for an existing kernel, I will do so on a test bench. Not a production machine. If you have a system that is parallel or uses the same hardware then that is where to run an unknown. The other alternative would be to test off hours.

You can broadcast to your user(s) that the systems would be down for a period of test. Just remember to leave a way to recover. Leave a known working environment/kernel in the lilo/grub. That way if something doesn't work then you can step back.

You will have to reboot the new kernel to get the load of the new device(s) that you have compiled for that kernel.
 
  


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
Add Kernel Module Toods Slackware 2 02-15-2006 10:40 AM
How to add a kernel module source? rollo Linux - General 6 10-19-2005 03:21 PM
how to add new loadable module to kernel? Mistreated Linux - Software 7 02-02-2005 10:22 AM
how to add my module to linux kernel eshwar_ind Linux - Newbie 3 02-10-2004 08:01 AM
Failed to initialize the NVIDIA kernel module THX1138 Linux - Newbie 14 11-11-2003 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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