LinuxQuestions.org
Help answer threads with 0 replies.
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 07-26-2004, 05:35 AM   #1
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
Managing different kernels on one system


Hi!
I was using Fedora Core 2 some weeks ago, and played around with various kernel
versions and -configurations.
After some time then, I finally broke my system so that it didn't boot up with
any of the custom compiled kernels.
I then felt that it was time to change to Mandrake 10, mostly because of the
working ATI graphics drivers.
Mandrake 10 came with an rather old kernel, 2.6.3, in fact, so I soon compiled
my own 2.6.7 kernel with the enwset 2.6.7 patch by Con Kolivas. It's working
well now, but what should I do if the new 2.6.8 kernel is finalized and I want
to install it? How do I keep all those kernel versions and the corresponding
modules isolated from each other? What do you recommend?

thx in advance!
 
Old 07-26-2004, 06:01 AM   #2
chardome
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware-current
Posts: 15

Rep: Reputation: 0
Hi,

After you compile a new kernel, you have to copy arch/... to /boot/vmlinuz...
The new /boot/vmlinuz... is just a name, different for each kernel you compile.
It could be /boot/vmlinuz-2.4.26 or /boot/vmlinuz-2.6.7 or /boot/vmlinuz-new, /boot/vmlinuz-new1, it doesn' t matter, it is just a name.
Just make another entry in LILO, with the new name you gave for each kernel.
image=/boot/vmlinuz
root=/dev/hda1
label=slackware1
read-only
This one of my entries. The next one is:

image=/boot/vmlinuz-2.6.7
root=/dev/hda1
label=slackware
read-only

Give aswell a timeout, and a default entry to be booted
.
When modifying LILO, don' t forget rerun lilo /sbin/lilo to update LILO at the next boot.
Same way for GRUB, even I am not really familiar yet.

Hope this is an help
 
Old 07-26-2004, 06:35 AM   #3
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Original Poster
Rep: Reputation: 15
Hi,
managing the already compiled kernels was not my problem, but managing the sources and keeping them isolated from each other. I have some modules that didn't came with the kernel, but needed the kernel sources to compile cleanly. So, when I compile an new kernel, how can I make sure that the version of the module corresponding to the old kernel is not loaded, but the new version?
 
Old 07-26-2004, 03:10 PM   #4
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Original Poster
Rep: Reputation: 15
Aargh, 10 minutes ago a typical problem happened again, and I have no plan how to fix it!

I compiled the 2.6.8-rc2 kernel, no problems. It is present in /usr/src/linux-2.6.8-rc2, but there's no symlink /usr/src/linux refering to it; there is my 2.6.7-ck5 kernel.
So, everytime the kernel tries to boot, I get a kernel panic: VFS: Unable to mount root fs on unknown-block(3,9)
I gave the kernel the command line option root=/dev/hda9, but it didn't help!
Can someone help me? The 2.6.7 kernel worked correctly, and I don't think that it's a bug in the 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
Managing Wi-Fi ripmaster Linux - Wireless Networking 9 06-07-2005 09:12 PM
Start-up Managing gamehack Slackware 1 10-02-2004 08:12 AM
System.map with several kernels? jontamask Slackware 3 05-23-2004 04:35 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 11:46 PM
Slackware package managing system moses Slackware 11 01-08-2003 02:55 AM

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

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