Unix/Linux Go Back    


Slackware The Official Release of Slackware Linux by Patrick Volkerding is an advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities.

/boot: how do I change the current kernel?

Slackware


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-10-2013
stf92 stf92 is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 11 March 2015, 1:09 PM EDT
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
/boot: how do I change the current kernel?

Slackware 14.0

Hi:
I once changed the smp kernel running in my system by another one in /boot. What I did was to relink /boot/System.map, /boot/vmlinuz and /boot/config. But I don't remember if I did something else. Would that alone be OK.
Sponsored Links
    #2  
Old Unix and Linux 01-11-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 21 April 2017, 9:37 PM EDT
Location: Saskatchewan
Posts: 22,069
Thanks: 1,070
Thanked 4,148 Times in 3,839 Posts
Yes, I think that should do it.

Another way to do so, the way I prefer to do it, is to alter the settings for your bootloader so it loads the new kernel instead of the old. That way I don't need to rename files inside /boot all the time. Makes me nervous, doing that.

Be careful to have a livecd or some such handy to fix it, if the new kernel doesn't work.
The Following User Says Thank You to Corona688 For This Useful Post:
stf92 (01-11-2013)
Sponsored Links
    #3  
Old Unix and Linux 01-12-2013
stf92 stf92 is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 11 March 2015, 1:09 PM EDT
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
I did switch to a generic kernel, and the OS is booted fine (I had to add an initrd, besides). But lilo's menu screen shows garbage. Everything in the screen looks well save for a letter U printed within the red box. At this time, lilo is waiting keyboard input, I mean lilo has the control (of course lilo calls some BIOS routines). So, what has the kernel to do with all this? How can the fact of having changed the kernel produce this effect? Something is wrong in the code in the MBR and the other sectors that contain lilo's bootloader. Is there a way to check this code? Or check the BIOS?

---------- Post updated at 03:06 AM ---------- Previous update was at 02:18 AM ----------

I think the letter U has been printed by lilo as an indicator, but I do not know what it means. The red box menu has two entries, 'slack14' and 'xp'. The 'U' is beside 'slack14'. Does anybody know it's meaning?
    #4  
Old Unix and Linux 01-12-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 21 April 2017, 9:37 PM EDT
Location: Saskatchewan
Posts: 22,069
Thanks: 1,070
Thanked 4,148 Times in 3,839 Posts
Quote:
Originally Posted by stf92 View Post
I did switch to a generic kernel, and the OS is booted fine (I had to add an initrd, besides). But lilo's menu screen shows garbage.
You're still using lilo ? I wasn't sure that still even existed.

You have to run the lilo command after you change files or anything like that, since lilo is too primitive to load a config file on boot. It reads the config file when you run lilo and saves offsets somewhere else, so it can just read from raw disk sectors on boot.
Sponsored Links
    #5  
Old Unix and Linux 01-12-2013
stf92 stf92 is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 11 March 2015, 1:09 PM EDT
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Corona, of course I have run the lilo command after updating the configuration file. But please do read the updated part of post #3.

About lilo, I do not know things like Grub, more sophisticated and friendly, but I stick to lilo for its simplicity.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Kernel boot options removed by fault, no boot options cdt Ubuntu 3 09-09-2011 12:27 AM
how to display pid and other parameters of current process through kernel module ? vaibhavkorde UNIX for Advanced & Expert Users 1 04-19-2011 11:04 AM
How to check what are the current kernel parameter settings newbie_01 UNIX for Advanced & Expert Users 2 07-13-2010 03:00 AM
How to stop other processes and kernel from printing output on current virtual term ku@ntum Programming 2 06-23-2009 06:53 AM
Current Kernel Development killerserv News, Links, Events and Announcements 0 02-18-2002 12:07 AM



All times are GMT -4. The time now is 01:32 AM.