Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-25-2006, 08:23 AM
|
#1
|
Member
Registered: Feb 2005
Distribution: Raspbian
Posts: 44
Rep:
|
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.
|
|
|
04-25-2006, 08:50 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,221
|
Did you ran after making the changes to /etc/lilo.conf
|
|
|
04-25-2006, 08:55 AM
|
#3
|
Member
Registered: Nov 2003
Distribution: slackware 15
Posts: 546
Rep:
|
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
|
|
|
04-25-2006, 09:29 AM
|
#4
|
Member
Registered: Feb 2005
Distribution: Raspbian
Posts: 44
Original Poster
Rep:
|
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.
|
|
|
04-25-2006, 11:28 AM
|
#5
|
Member
Registered: Nov 2003
Distribution: slackware 15
Posts: 546
Rep:
|
You're in the right direction....
Ciao
|
|
|
All times are GMT -5. The time now is 12:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|