Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 08-30-2003, 10:15 AM   #1
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
kernel compile more than once panics the penguin (and me)

I've been messing around recompiling the kernel but I'm still missing a piece in my understanding so if anyone could enlighten:

At first if I download the source and recompile on a clean install and then do make modules, modules_install part, alot of the modules are missing and can't be loaded, where did they go? Were they even there ? If I rename


this seems to help.

If I recompile more than once everything goes belly-up and when I reboot the poor fellow has a panic and refuses to go on.

Message is something like "kernel Panic VFS can't find (0300) add the line root=/ " or something like that (not very specific I know ) At first I thought it was cos I left out VFS in the file systems but it does the same with it in and lilo seems to be updated okay by make install.

What is the exact relation to modules and where they end up/fit in location wise when you're compiling the kernel?

It's the everything going pear-shaped if I recompile more than once that's bugging me more as I am obviously missing out something that's related. I've been doing the normal compile routine from the up the top of this forum

make mrproper (depending)
make menuconfig
make bzImage
make install
make modules
make modules_install

(kernel panic )

I need enlightenment as I really want to understand what's going wrong as I consider it quite fundamental to my understanding of the bigger picture, so if I'm making any sense let me know what you think.
Old 08-30-2003, 10:26 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Follow this thread closely and you shouldn't have any problems compiling your kernel on Slackware.
Old 08-30-2003, 10:35 AM   #3
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Uhh, according to the Slackware essentials book,

make mrproper(brings kernel to it's base state)
make menuconfig
make clean
make deps
make bzImage
make modules
then in /boot you re-name and vmlinuz to and vmlinuz.old and copy the new files from /usr/src/linux to /boot
you don't have to do a make modules_install

You have to be sure that the kernel-modules and the kernel-ide and the kernel-headers packages are installed!! this is a must
Old 08-30-2003, 06:22 PM   #4
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Original Poster
Rep: Reputation: 45
Yup, that seems to be what was causing me problems, the make install - compiled 2.4.22, copied/altered everything manually, edited lilo and shebang the penguin stopped flapping.

A lesson learned the hard way, indeed


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
2.6.1 and kernel panics hondaman Mandriva 6 02-07-2004 08:18 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM
Kernel Panics? cli_man Linux - Software 0 09-05-2003 08:58 AM
kernel panics please help valleyman Linux - Hardware 12 06-26-2003 05:23 AM
Kernel panics!!! pagal Linux - General 12 01-26-2003 02:29 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration