Solved

What is /boot/System.map ???

Posted on 2002-05-24
3
276 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now