LinuxQuestions.org
Review your favorite Linux distribution.
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 02-09-2008, 03:36 PM   #1
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Rep: Reputation: 15
What does the /boot/system.map file do?


I have compiled a smaller kernel for my system a couple of times, and I've had good luck with it most of the time, but I've never done anything with the system.map file.

I saw this helpful and friendly link on the Linux Questions forum, describing how to recompile a kernel in SlackWare, but he just said to copy the system.map file without mentioning what it does. Am I missing something valuable?
 
Old 02-09-2008, 04:16 PM   #2
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
http://en.wikipedia.org/wiki/System.map

Jfgi

You most likely won't ever need it so there is no harm in not copying it over. On the otherhand, it's about 700K so why wouldn't you? Make install copies it btw.
 
Old 02-09-2008, 05:07 PM   #3
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
System.map is used by syslogd/klogd for logging the kernel. They look respectively on /, /boot and /lib/modules/`uname -r`/build to find out a proper System.map. They are able to determine automagically the correct version of System.map, so you can have several files around without hurting the system. (it is not necessary you append the kernel version to the file name)
So..it is not strickly necessary you copy it to /boot ('though it doesn't hurt) if you have the kernel sources installed.
In case of lack of a proper System.map you just have problems in case of kernel crash or segfault as you have no logs to check.
System map is also used by some emulators/virtual machines, so if you use one you'd better go with System.map at the right place (usually /boot).
Ciao
 
Old 02-11-2008, 11:38 AM   #4
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Original Poster
Rep: Reputation: 15
Why do I always seem to forget Wikipedia as a potential source of technical knowledge? I just don't know.

Thank you both for your sharing your valuable knowledge.

-dP
 
Old 02-11-2008, 03:15 PM   #5
slacksite
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Rep: Reputation: 0
The system.map file is a mapping between hexadecimal symbols used by the kernel into human readable function and variable names. As these symbols change with every kernel compile, a new system.map is generated each time.

Unless you are doing crash dump analysis and debugging, I wouldn't worry too much about this file. Just make it good practice to copy the new one to /boot each time you replace your kernel.

--Aleks
 
  


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
boot/System.map: Bad file descriptor pixie Fedora 16 03-01-2005 12:19 PM
No System.map file kaltag Linux - General 2 01-08-2004 05:28 AM
What does the System.map file do? elluva Linux - General 7 01-05-2004 11:09 AM
What is System.map file? and why do we need it? concoran Linux - General 9 11-18-2001 09:42 PM
System.map file bash Linux - Software 1 10-01-2001 03:46 AM

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

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