LinuxQuestions.org
Review your favorite Linux distribution.
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 10-15-2006, 05:24 PM   #1
swammi
LQ Newbie
 
Registered: Jul 2006
Distribution: fc5
Posts: 17

Rep: Reputation: 0
kernel panic after rebuild


After rebuilding my kernel, I'm getting the following error message @ boot:
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.

Here's what I'm working with:
[swammi@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.17-1.2187_FC5 #1 Mon Sep 11 01:17:06 EDT 2006 i686 athlon i386 GNU/Linux

I configured the kernel and saved .config using xconfig.
then...
[root@localhost linux-2.6.17.i686]# make clean
[root@localhost linux-2.6.17.i686]# make bzImage
[root@localhost linux-2.6.17.i686]# make modules
[root@localhost linux-2.6.17.i686]# make modules_install

I'm pretty much ignorant in everything else. I didn't make a new initrd b/c I figured the .img that's booting with my old kernel (the working one I'm using now) is operational.

Where is this device-mapper in the xconfig menu? Why is this module loading with the old kernel and not with the recompiled kernel? Can I make a different initrd to load this module with the new kernel? How?

Thanks. Surely I've left some necessary info out. Please let me know what you need as I'm fairly new to linux.
 
Old 10-15-2006, 05:38 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
What does lilo.conf or grub.lst look like? Did you edit your bootloader to point to the new kernel?
 
Old 10-15-2006, 05:48 PM   #3
swammi
LQ Newbie
 
Registered: Jul 2006
Distribution: fc5
Posts: 17

Original Poster
Rep: Reputation: 0
It sure looks that way...I've even experimented with moving the file around while changing the destination in menu.lst to make sure.

#boot=/dev/hdb
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.17-1.2187_FC5-061013recompile)
root (hd0,0)
kernel /bzImage-2.6.17-1.2187_FC5-061013recompile \
ro root=/dev/VolGroup00/LogVol00 rhgb
initrd /initrd-2.6.17-061014recompile.img
title Fedora Core (2.6.17-1.2187_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.17-1.2187_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb
initrd /initrd-2.6.17-1.2187_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)

Is there a way to check what's in the initrd.img? and if there are modules that need to be preloaded?

Last edited by swammi; 10-15-2006 at 05:52 PM.
 
Old 10-15-2006, 06:07 PM   #4
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 2,996

Rep: Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517
OK, here we go. When you do a:

make clean

you must then do

make xconfig

afterwards. Even if you don't change anything in

.config

you still need to make the config in order to prepare for:

make all
make modules_install
/sbin/depmod
make install
command that make install displays

So:

make clean
make xconfig
make all
make modules_install
/sbin/depmod
make install

copy and paste the command that make install displays:

sh /home/tom/rpmbuild/BUILD/kernel-2.6.17/linux-2.6.17/arch/i386/boot/install.sh 2.6.17PPS arch/i386/boot/bzImage System.map "/boot"

to make initrd, edit grub, install the kernel and System.map
 
Old 10-15-2006, 06:26 PM   #5
swammi
LQ Newbie
 
Registered: Jul 2006
Distribution: fc5
Posts: 17

Original Poster
Rep: Reputation: 0
OK, I was following a online rebuild guide and there was never a make install command.
So...

[root@localhost linux-2.6.17.i686]# make install
sh /usr/src/redhat/BUILD/kernel-2.6.17/linux-2.6.17.i686/arch/i386/boot/install.sh 2.6.17-prep arch/i386/boot/bzImage System.map "/boot"

This makes symlinks that are a bit more sensible.

This is the guide...
http://www.digitalhermit.com/linux/K...GURATION-INTRO
 
Old 10-15-2006, 06:36 PM   #6
swammi
LQ Newbie
 
Registered: Jul 2006
Distribution: fc5
Posts: 17

Original Poster
Rep: Reputation: 0
B/c the guide I was following never included a make install and instead forced me to copy the rebuild, make all the symlinks and edit my grub.lst manually. This was much easier and it now makes sense why the previous rebuild couldn't find any modules. Thanks so much for your help!
Swammi

Last edited by swammi; 10-15-2006 at 06:37 PM.
 
  


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
How should I rebuild the Kernel waterox SUSE / openSUSE 5 10-02-2006 03:45 PM
Kernel Rebuild Nikosis Linux - Newbie 4 05-01-2006 12:40 AM
kernel rebuild Present Yoper 9 11-26-2004 06:08 PM
Rebuild kernel And then !!! left-hand Linux - Software 4 02-06-2004 09:59 AM
Kernel panic on rebuild; can't mount fs 303 cellist Linux - Newbie 9 11-25-2003 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration