LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-06-2004, 10:41 AM   #1
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
kernel change all of a sudden? Modules wont load


All of a sudden one day after a reboot my slackware machine is booting the wrong kernel. The kernel I am supposed to be running is 2.4.25 and the uname -a command is showing 2.4.22. I have no idea how this could have changed.

the link in /usr/src for linux is set to the 2.4.25 directory
/boot/vmlinuz is pointing to 2.4.25

I am using a boot disk to boot the system so I really dont think that would have changed at all ever. When booting it is showing errors trying to get modules from /lib/modules/2.4.22 and not 2.4.25. I dont know where to point to the correct location for the desired kernel.

My lsmod command shows nothing so no modules are being loaded at all. Any help would be greatly appreciated
 
Old 04-06-2004, 11:11 AM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
what bootloader are you running?

if you are using lilo,

edit /etc/lilo.conf
and specify the kernels that should be available right before boot time,
also change the default kernel setting to the kernel that should be booted after timeout=n

and simply save the changes, and type,

/sbin/lilo
at the shell, then reboot.

NOTE: This will simply change the default kernel that boots, and you can make sure the kernel you are supposed to be booting is in the lilo.conf file so that it "can be booted" .
 
Old 04-06-2004, 11:22 AM   #3
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Original Poster
Rep: Reputation: 30
everything in lilo.conf file looks like it is pointing to the correct spot. I am using a boot disk that I made upon installation. I tried to write the boot loader info to the MBR with /sbin/lilo -M /dev/hda with no luck. It came up saying non-system disk error. I dont know how to make another boot disk with slackware either
 
Old 04-06-2004, 11:38 AM   #4
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
The only thing I can think of is that when you used m ake menuconfig to compile a new kernel the version numbers got changed somehow, or you really are booted into a 2.4.22 kernel and forgot to do something with the 2.4.25 setup.

EDIT: recreate a bootdisk with a version number, that is why you are still booting 2.4.22

your bootdisk.

man mkbootdisk

Have you even compiled the kernel yet for the 2.4.25 kernel? (dumb question, but have you?)

ASLO, my man lilo doesnt show an -M , command, maybe mine is old,.

Last edited by AutOPSY; 04-06-2004 at 11:43 AM.
 
Old 04-06-2004, 11:58 AM   #5
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Original Poster
Rep: Reputation: 30
slackware doesnt have the mkbootdisk command. I didnt compile my own kernel but updated with swaret......so that may be my problem. I have another partition that used to have mandrake on it but now will be wiped for a fresh install. I will keep playing with it to check out and see if I can figure it out. Thanks for all your help!
 
  


Reply



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
How to Load Kernel Modules? binarybob0001 Linux - General 5 11-16-2005 10:15 AM
Gnome Wont load after video card driver change dietrichmd Linux - Software 2 10-18-2004 09:13 PM
modules: change load order? (agpgart & radeon) mehlkelm Debian 2 09-21-2004 03:52 PM
new kernel 2.6.7 cant load modules short101 Debian 8 08-21-2004 09:59 PM
Making custom kernel..but drivers and modules wont load on boot skoal Linux - General 10 12-06-2001 06:59 PM

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

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