9

I'm experimenting with generating some custom kernels using genkernel.

However, each iteration leaves a file in /boot called System.map-genkernel-<arch>-<version>.

Is it safe to rename and/or delete the System.map-* files?

1 Answer 1

10

The System.map file is mainly used to debug kernel crashes. It's not actually necessary, but it's best to keep it around if you're going to use that kernel. If you've decided you don't need that kernel, then it's safe to delete the corresponding map file.

If you're really low on disk space, you could compress the map files. They aren't that big, so this won't save much space, but bzip2 will squeeze them down to about 25% of the original size. Then you can uncompress one if you discover that you need it.

6
  • @cjm what if, after a certain time of continuous use (let's say, 2 weeks), I felt the kernel is stable and in no need of debugging. Is it safe to delete the System.map then? Commented Mar 24, 2011 at 8:33
  • Why do you want to delete it? Commented Mar 24, 2011 at 8:42
  • 1
    Why not delete it at the same time as deleting the kernel? Commented Mar 24, 2011 at 8:52
  • @jrtayloriv /boot is getting full Commented Apr 1, 2011 at 8:25
  • 2
    I'm not saying don't keep one or two known good kernels, in fact I would suggest you do. What I am suggesting is that when you delete a kernel, delete the map file for that kernel. The map files are only about 1.8 MB. Delete them if you have to, but if you've got more than two or three kernels, it might be time to delete a kernel and a System.map together. Commented Apr 1, 2011 at 9:21

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.