Solved

What is /boot/System.map ???

Posted on 2002-05-24
3
287 Views
Last Modified: 2013-12-16
What does this file do? (Redhat 7.x)
The kernel README doesnt mention it, but some other documents do. If I am booting various kernels for testing, etc, often the System.map does'nt match the kernel I booted, does that matter, if not- why is it there?  
0
Comment
Question by:medent
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 7033392
The System.ma file is simply a loader map of the kernel and lists the addresses of kernel variables and functions. It is used by the klogd daemon if a protection fault occurs to translate the addresses into meaningful symbols. There are some drivers that need use System.map and some utilities, like lsof and dosemu (and probably others). The usual way to be able to have more than one kernel installed is to also have that kernel's System.map with some unique name, like perhaps System.map-2.4.18-test1 and use a symlink for System.map.
0
 

Author Comment

by:medent
ID: 7038855
It doesnt seem to make sense that I can setup grub.conf to boot multiple kernels, and initrds, but the not System.map .
0
 
LVL 40

Expert Comment

by:jlevie
ID: 7039233
The the kernel and initrd can be specified to grub and it will use that definition once to boot the system. And since the kernel knows what its ID is it can find the modules dir as needed. The other, application level, things that use System.map have no easy way to figure out what system map is associated with the running kernel.

In a case where one is playing with kernels and has several around to boot with it would be possible to add some code to rc.local that figures out what kernel has just booted from 'uname -r' and adjusts the symlink as appropriate.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question