LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2002, 09:58 PM   #1
Bear
LQ Newbie
 
Registered: Mar 2002
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
Kernel Recompile missing library modules


Well, it would seem that I'm one of the few people that actually got Red Hat 7.2 to install properly. And after much effort (and some help) I got it to dual boot with Windows XP by using GRUB.

However, Red Hat setup doesn't let you choose which filesystems are supported in your kernel and so I wanted to recompile my kernel to support NTFS and FAT partitions so I could listen to my mp3's while running Linux. So I downloaded kernel sources and walked myself through installing the sources and recompiling the kernel (a huge achievement since I'm a complete newbie). I added an entry for the new kernel in GRUB and booted into it but while booting there were a couple error messages that showed up. There was an error in "depmod" and "modprobe" and they had to do with being unable to locate

/lib/modules/2.4.18/modules.dep

Or something in that directory. What could have went wrong in my installation to cause this? Any suggestions would be appreciated.

Bear

 
Old 03-26-2002, 06:42 AM   #2
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
Tell us the complete commands you typed when compiling your kernel.

ie:
make mrproper
make menuconfig
make dep
make bzImage
cp arch/i386/boot/bzImage /boot/bzImage-2-4-whatever
make modules
make modules_install

All this is done in /usr/src/linux, You may have to create a simlink to linux-2.4.7-10.
ln -s /usr/src/linux /usr/src/linux-2.4.7-10 or what ever redhat puts in /usr/src

http://www.linuxdoc.org/HOWTO/Kernel-HOWTO-2.html
 
Old 03-26-2002, 11:55 AM   #3
Bear
LQ Newbie
 
Registered: Mar 2002
Distribution: Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
I didn't realize that I needed to do do

# make modules
# make modules_install

Nond of the documentation that I had looked at had mentioned that. From what directory do I run those commands?

Bear
 
Old 03-26-2002, 12:09 PM   #4
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
They are all in the kernel source directory in that sequence. I personally cp the bzImage file after I do make modules_install but it can work that way too. Just for fun I do it this way:

cd /usr/src/linux-2.4.18
make menuconfig
make dep
make bzImage
make modules
make modules_install
cp System.map /boot
cp arch/i386/boot/bzImage /boot/vmlinuz
The last two depend on where and what your bootloader are looking in and for as to what you'd name them.
 
Old 03-26-2002, 05:28 PM   #5
Bear
LQ Newbie
 
Registered: Mar 2002
Distribution: Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
Well I went back to where my sources were and ran make modules and make modules_install so my total process was

make mrproper
make xconfig
make dep
make bzImage
make modules
make modules_install

however there's still some sort of error having to do with modprobe and my soundcard and network card weren't enabled. Any suggestions?
 
  


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
snd-* modules disappeared after kernel recompile Soulstealer Linux - Software 7 03-27-2005 02:48 PM
Modules problems after kernel recompile (2.6.9) magoseitor Linux - Software 2 02-20-2005 12:12 AM
Kernel Recompile Filesystem modules ftgow Linux - Software 2 08-25-2003 01:46 AM
lost modules after kernel recompile ArnaudVR Slackware 2 07-07-2003 03:41 PM
need to recompile modules if i add something to kernel option? doublefailure Linux - General 1 03-05-2003 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:04 PM.

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