LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-25-2006, 08:23 AM   #1
dcc
Member
 
Registered: Feb 2005
Distribution: Raspbian
Posts: 44

Rep: Reputation: 19
lilo.conf


I tried compiling my kernel, as a learning exercise. I followed the sticky found here. I added the lines below to the lilo.conf file, to be able to boot into teh old kernel,but I still only have the one Linux option when I boot. I can boot, but I would like to know why the slack.old was not added to the boot choices. Am I skipping something? Any suggestions?


Add this to your config...you can just copy what is there and add the .old stuff.

image = /boot/vmlinuz.old

root = /dev/hda1

label = slack.old

read-only

If things did not go completely according to plan you can boot your old (working)
kernel by selecting slack.old at the lilo screen.
 
Old 04-25-2006, 08:50 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Did you ran
Code:
lilo
after making the changes to /etc/lilo.conf
 
Old 04-25-2006, 08:55 AM   #3
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
You probably did not run lilo after lilo.conf modification. You must do that afer any lilo.conf modifications in order they are actually registered.
as root try
lilo -v -t
-v is for verbose. just to see what happens
-t is for test. Just test, no modifications at all.
If no errors are reported again
lilo
and you should be after.
Sorry, but I suspect you are messing a bit your system.
After new kernel compile you will have three files you need from the kernel source directory. (not exactly, but let's assume this is fully true).
/usr/src/linux-2.6.16.9/arch/i386/boot/bzImage
/usr/src/linux-2.6.16.9/System.map
/usr/src/linux-2.6.16.9/.config ----------------> this is an hidden file
rename them acording to your needs (ie bzImage-2.6.16.9 etc)
and copy them into your /boot directory
edit your /etc/lilo.conf just adding a section like

image = /boot/bzImage-2.6.16.9
root = /dev/hda6 ---------------------> this must be modified according to your needs
label = Linux-2.6.16.9
read-only

Do not modify anything else.
Run lilo as said before
Hope this helps
Ciao
 
Old 04-25-2006, 09:29 AM   #4
dcc
Member
 
Registered: Feb 2005
Distribution: Raspbian
Posts: 44

Original Poster
Rep: Reputation: 19
lilo.conf

Thanks for the replys. I did not run lilo after the compile. I just rebooted. I'll try that when I get home tonight.

I am using the 2.4 kernel that came with 10.1, so I am not sure those files apply. As for messing up the system, I'm sure I will. But thats OK. Worst case, I'll reinstall and start over. I have used Slackware for about a year now, but never went deeper than installing Open Office. I would like to understand more about the kernel, and compiling applications. The only way I know how to learn is to try. Thanks again, and any suggestions are appreciated.
 
Old 04-25-2006, 11:28 AM   #5
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
You're in the right direction....
Ciao
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is lilo.conf file format is same for grub.conf? Chundo Linux - Newbie 1 01-30-2006 06:21 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 03:15 AM
lilo.conf.anaconda v. lilo.conf rbaird2001 Red Hat 1 04-01-2004 12:16 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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