LinuxQuestions.org
Visit Jeremy's Blog.
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 12-05-2003, 08:05 PM   #1
CodeWarrior
Member
 
Registered: Mar 2003
Location: US
Distribution: Kubuntu 6.06
Posts: 173

Rep: Reputation: 30
Need help with booting 2 kernels


Hi guys,
I am running Slack 9.0. I am currently running the 2.4.20 kernel(precompiled) and I compiled the 2.4.22 kernel. I am using Lilo as my boot loader. I want the ability to boot either kernel. My confusing lies in the /boot directory. I don't know what I have to do with the symbolic links in this directory, anything? My compiled kernel image is called vmlinuz-ide-2.4.22 and it's system map is called System.map-ide-2.4.22. Here is what my /boot directory looks like...


$ ls -l
total 3412
lrwxrwxrwx 1 root root 21 Nov 19 21:14 System.map -> System.map-ide-2.4.20
-rw-r--r-- 1 root root 563791 Mar 18 2003 System.map-ide-2.4.20
-rw-r--r-- 1 root root 567424 Nov 15 18:48 System.map-ide-2.4.22
-rw-r--r-- 1 root root 512 May 25 2003 boot.0342
-rw-r--r-- 1 root root 179 May 25 2003 boot_message.txt
-rw-r--r-- 1 root root 699 Nov 13 23:42 bootdiroriginal
lrwxrwxrwx 1 root root 17 May 25 2003 config -> config-ide-2.4.20
-rw-r--r-- 1 root root 36222 Mar 18 2003 config-ide-2.4.20
-rw------- 1 root root 37888 Nov 15 19:39 map
lrwxrwxrwx 1 root root 18 Nov 15 14:56 vmlinuz -> vmlinuz-ide-2.4.20
-rw-r--r-- 1 root root 1170308 Mar 18 2003 vmlinuz-ide-2.4.20
-rw-r--r-- 1 root root 1094606 Nov 15 18:46 vmlinuz-ide-2.4.22


Do I just leave these symbolic links alone pointing to my default kernel(2.4.20)?

I have also modified my lilo.conf file here is what a piece of it looks like...

# Linux bootable partition config begins(original)
image = /boot/vmlinuz
root = /dev/hdb2
label = 2.4.20
read-only
# My Linux
image = /boot/vmlinuz-ide-2.4.22
root = /dev/hdb2
label = 2.4.22
read-only
# Linux bootable partition config ends
 
Old 12-05-2003, 08:11 PM   #2
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
Yea, that's fine.

The symlinks really don't matter. They are used mainly so that you don't have to update lilo.conf every time you update the kernel ( you can just update the symlinks ). In your case, I'd recommend leaving everything as is.
 
Old 12-05-2003, 08:13 PM   #3
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Nothing...just choose which kernel you wish to load at the Lilo screen and that's it.
 
Old 12-05-2003, 08:25 PM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
My understanding is that there isn't a whole lot of programs that rely on the maps anymore. I think klogd does, to name one. But from what I've read it will pick them up if they are named like System.map-2.4.22, System.map-2.4.23, and etc. Not sure about the ide being there, as I think it uses "uname -r" to determine it. I name mine this way and don't use the links at all, haven't had any problems. You could also write a short sh script to redo the links for you when you boot the system, based on what kernel you boot, which would probably be an all around better solution. I don't think the configs are used at all, basically just there for your own benefit in knowing what kernel contains what and for being able to easily recompile it if you happen to lose or change the one in the source tree. And I think lilo is the only program that cares anything about the kernel image itself, so you could use any name lilo will accept for it. Here's mine for reference:
Code:
-rw-r--r--    1 root     root         593K Nov 26 15:48 System.map-2.4.22
-rw-r--r--    1 root     root         840K Nov 26 16:30 System.map-2.6.0-test10
-rw-r--r--    1 root     root         842K Dec  1 21:34 System.map-2.6.0-test11
-rw-r--r--    1 root     root          512 Oct 25 21:57 boot.0303
-rw-r--r--    1 root     root          25K Nov 26 04:19 config-2.4.22
-rw-r--r--    1 root     root          25K Nov 26 15:54 config-2.6.0-10
-rw-r--r--    1 root     root          26K Dec  1 21:34 config-2.6.0-11
-rw-------    1 root     root          64K Dec  5 01:19 map
-rw-r--r--    1 root     root         1.3M Nov 26 15:49 vmlinuz-2.4.22
-rw-r--r--    1 root     root         1.8M Nov 26 16:31 vmlinuz-2.6.0-10
-rw-r--r--    1 root     root         1.8M Dec  1 21:35 vmlinuz-2.6.0-11
Anyway, interesting topic, maybe someone who knows more about the subject will respond.

Last edited by DaHammer; 12-05-2003 at 08:27 PM.
 
Old 12-05-2003, 08:25 PM   #5
CodeWarrior
Member
 
Registered: Mar 2003
Location: US
Distribution: Kubuntu 6.06
Posts: 173

Original Poster
Rep: Reputation: 30
ok, what is this system map? What is is used for? It doesn't seem to be mentioned in the lilo.conf file. If I choose to boot 2.4.22 how does the system know to use the correct system map?
 
Old 12-05-2003, 08:31 PM   #6
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Here is a little info on it. Don't think lilo uses System.map at all.

http://64.142.25.39/linux/system.map/
 
Old 12-06-2003, 04:30 PM   #7
CodeWarrior
Member
 
Registered: Mar 2003
Location: US
Distribution: Kubuntu 6.06
Posts: 173

Original Poster
Rep: Reputation: 30
Thanks guys. So it looks like the System.map is not used directly for booting purposes, but some other programs might use it.
 
  


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
Kernels ImpactDNI Linux - Software 6 08-26-2004 07:39 AM
/etc/modules when booting multiple kernels cbirdlinux Linux - General 2 07-22-2004 05:57 PM
Are you dual booting and Windows stopped working (booting) then here's the answer: rberry88 Linux - General 1 02-12-2004 09:05 AM
Suddenly kernels won't finish booting chort Mandriva 5 10-26-2003 03:55 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM

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

All times are GMT -5. The time now is 10:17 PM.

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