LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-06-2003, 11:26 PM   #1
Culbert
Member
 
Registered: Mar 2003
Location: Chicago, IL
Distribution: Libranet 2.8.1
Posts: 133

Rep: Reputation: 15
how to find out what modules are in my kernel


I'm going to attempt my first kernel rebuild. I've read how to do it and it seems fairly simple. Basically you just follow the steps and then decide whether to load something into the kernel or as a loadable module. Seems simple enough.... Just to be safe however, I want to make sure I copy down all of the stuff that starts when I boot as well as all the stuff that I have set as a loadable module. How do I access this info?

Thanks,

Linux Newb
 
Old 09-07-2003, 12:15 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
by running

lsmod

you can see the modules you are using at the moment.

most distros will have the current config file in /boot

you could start by loading it and go through it deciding what you do not need.

always save your working kernel, and a working boot disk.

your boot disk depends on the files in /lib/modules/2.4???? that were used to create it, so keep those unless you make a new boot disk.

keep copys of the config files as you go.

Last edited by DavidPhillips; 09-07-2003 at 12:17 AM.
 
Old 09-08-2003, 06:24 AM   #3
Umasankar
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
well. run nm /boot/vmlinuz or look at the System.map file under /boot.This will show you the list of functions in the kernel from which you can deduce the list of modules compiled into the kernel.
 
Old 09-08-2003, 06:25 AM   #4
Umasankar
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
As vmlinuz is a compressed image, please run nm /boot/vmlinux.
 
Old 09-08-2003, 10:26 AM   #5
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
grep \=m /usr/src/linux/.config
or
grep \=m /boot/config
 
Old 09-08-2003, 10:30 AM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
If you have a /boot/config file then after you install the kernel sources and do make mrproper then go to /usr/src/linux and do this:
cp /boot/config ./.config
make oldconfig

That will give you an exact match for your distros kernel, minus any patches they apply, of course.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New kernel fails to boot: It can't find modules.dep though it's there lixy Linux - General 2 04-16-2005 07:23 AM
cannot find map file. No module symbols loaded - kernel modules not enabled. jjorloff1 Linux - Software 3 01-06-2005 11:02 AM
Upgraded Kernel via upgradepkg Can't Find Modules KingofBLASH Slackware 2 03-03-2004 07:13 PM
Updated RH9 Kernel can't find modules morgan Linux - General 1 05-25-2003 02:50 PM
Kernel unable to find the modules? shassouneh Linux - Software 20 06-23-2002 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:29 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
Open Source Consulting | Domain Registration