LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-22-2004, 02:40 PM   #1
cbirdlinux
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
/etc/modules when booting multiple kernels


Hello all,
For various reasons, on my laptop I sometimes boot a 2.6.7 kernel and sometimes boot a 2.4.26 kernel. The problem that I run into is that when I boot, I haven't been able to figure out a way to have certain modules loaded when the 2.4 kernel is booted and a different set of modules when a 2.6 kernel os booted. This is because although the modules directories are versioned, /etc/modules is not versioned so I can't have an /etc/modules (and other module-specific files) for one kernel and another one for a different kernel. I have to manually load and unload modules by hand each time I boot which is very annoying and time-consuming. Has anyone else ever run into a similar problem? Does anyone have any advice or solution to help me deal with this? Thanks so much!

-- Christian Bird
 
Old 07-22-2004, 04:13 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027
I remember reading somewhere that it's possible to put some kind of if statement in the file to do that, something like "if kernel=2.4.0 then load x", but I don't remember exactly how it would be formatted. I'd like to know myself, as I get a lot of "fatal error" messages as I boot up, and I'm reluctant to just erase everything in case I ever want to boot up my old kernel.
 
Old 07-22-2004, 06:57 PM   #3
Antimatter
Member
 
Registered: Jul 2003
Posts: 37

Rep: Reputation: 15
i'm using gentoo myself and it has two seperate configation files for the etc/modules one is named kernel-2.6 other is kernel-2.4

*shungs*
 
  


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
Multiple Kernels apocolpse Linux - Newbie 3 03-17-2005 04:09 AM
precompiled kernels & modules linuxhippy Slackware 5 03-14-2005 08:46 PM
2 kernels 1 set of lib/modules?? fred22 Linux - General 2 02-24-2005 03:31 AM
Modules and 2.6test kernels rch Linux - General 3 11-11-2003 10:39 PM
How to test between 2 kernels in /etc/modules.conf pnb Linux - General 2 11-10-2003 05:29 PM

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

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