LinuxQuestions.org
Help answer threads with 0 replies.
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 10-05-2004, 06:36 AM   #1
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
help clear this up


Hi all

Ok im a little confused as to what happens in the /boot folder

After a fresh install i am left with 3 files necessary for booting:-
namely

config
SystemMap
vmlinuz

which are all sym links to the real files in the same dir, ie

SystemMap ->SystemMap-2.4.26
config ->config-2.4.26
vmlinuz ->bzImage-2.4.26

Ok so i compile a new kernel and copy the new files into /boot dir ,delete the sym links and re-create them to point to the new kernel version ie.

SystemMap ->SystemMap-2.4.26.test
config ->config-2.4.26.test
vmlinuz ->bzImage-2.4.26.test

and run lilo to adjust for the differences.
(I think that the Systemmap as something to do with where modules etc are stored.)

ok so lilo detects that there are 2 kernels available (does this mean that the symbollic links arn't necessary! If so then the rest of this question is poinless )and configures itself. So how does lilo know which system map to use to boot with? The only thing that i see to be adjustable in the lilo.conf is the kernel name.

Now if you boot linux you are presented with 2 choices like so

linux-2.4.26.test (New kernel)
linux-2.4.26 (Old kernel)

lets say you choose the old kernel, won't the os be using the Systemmap that is now pointing to the new kernel

hope somebody can clear this up for me

thanx
 
Old 10-05-2004, 07:23 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there
u do not symbolic links for this
just in ur lilo.conf put the nam sof the images as they are like

this is the O/P of my /boot
----------------------------------------------------
[root@gaurav root]# ls -la /boot
total 7296
drwxr-xr-x 3 root root 4096 Oct 4 15:34 .
drwxr-xr-x 23 root root 4096 Oct 5 16:27 ..
-rw-r--r-- 1 root root 46375 May 8 18:51 config-2.6.5-1.358
drwxr-xr-x 2 root root 4096 Aug 26 23:22 grub
-rw-r--r-- 1 root root 195067 Aug 26 00:20 initrd-2.6.8.1gm51.img
-rw-r--r-- 1 root root 199109 Aug 27 00:01 initrd-2.6.8.1gm52.img
-rw-r--r-- 1 root root 111059 Oct 4 15:34 initrd-2.6.8.1gm57.img
-rw-r--r-- 1 root root 112934 Oct 1 19:29 initrd-2.6.9.rc2gm56.img
-rw-r--r-- 1 root root 543 Aug 6 09:31 kernel.h
-rw-r--r-- 1 root root 474736 Aug 27 00:00 System.map-2.6.8.1gm51
-rw-r--r-- 1 root root 474736 Aug 27 00:00 System.map-2.6.8.1gm52
-rw-r--r-- 1 root root 495504 Oct 4 15:33 System.map-2.6.8.1gm57
-rw-r--r-- 1 root root 517312 Oct 1 19:29 System.map-2.6.9.rc2gm56
-rw-r--r-- 1 root root 1137498 Aug 26 00:19 vmlinuz-2.6.8.1gm51
-rw-r--r-- 1 root root 1133074 Aug 27 00:00 vmlinuz-2.6.8.1gm52
-rw-r--r-- 1 root root 1207016 Oct 4 15:33 vmlinuz-2.6.8.1gm57
-rw-r--r-- 1 root root 1237280 Oct 1 19:29 vmlinuz-2.6.9.rc2gm56
[root@gaurav root]#

--------------------------------

and this is my /etc/grub.conf
--------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hda3
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=3
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz


title Fedora Core (2.6.8.1gm51)
root (hd0,2)
kernel /boot/vmlinuz-2.6.8.1gm51 ro root=/dev/hda3 rhgb quiet
initrd /boot/initrd-2.6.8.1gm51.img


title Fedora Core (2.6.8.1gm52)
root (hd0,2)
kernel /boot/vmlinuz-2.6.8.1gm52 ro root=/dev/hda3 rhgb quiet
initrd /boot/initrd-2.6.8.1gm52.img


title Fedora Core (2.6.9.rc2gm56)
root (hd0,2)
kernel /boot/vmlinuz-2.6.9.rc2gm56 ro root=/dev/hda3 rhgb quiet
initrd /boot/initrd-2.6.9.rc2gm56.img



title Fedora Core (2.6.8.1gm57)
root (hd0,2)
kernel /boot/vmlinuz-2.6.8.1gm57 ro root=/dev/hda3 rhgb quiet
initrd /boot/initrd-2.6.8.1gm57.img

title windows
rootnoverify (hd0,0)
chainloader +1


-------------------------------------

so u see i have just specified the name of the kernel and initrd images
i have done the same earlier with lilo also many times

symbolic links are just for ease of use ,not much

regards

Last edited by masand; 10-05-2004 at 07:24 AM.
 
Old 10-05-2004, 10:17 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
The System.map will be used accordingly to the kernel version, for example :

System.map-2.6.7 will be used with vmlinuz-2.6.7

http://www.dirac.org/linux/system.map/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do i replace the clear "clear screen" with the cls command thefedexguy SUSE / openSUSE 2 12-02-2005 06:02 PM
How do i clear the MAKEFILE ?? glenn69 Linux - Newbie 5 04-23-2004 08:50 PM
how do you clear the ... dailyd Linux - Software 3 02-26-2004 05:03 PM
Clear this please lramos85 Fedora 3 02-06-2004 07:35 PM
still not clear garorag Linux - Newbie 2 09-18-2001 01:48 PM

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

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