Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer
    
@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? –  pepoluan Mar 24 '11 at 8:33
    
Why do you want to delete it? –  jrtayloriv Mar 24 '11 at 8:42
1  
Why not delete it at the same time as deleting the kernel? –  Mikel Mar 24 '11 at 8:52
    
@jrtayloriv /boot is getting full –  pepoluan Apr 1 '11 at 8:25
    
@Mikel I'm in a kernel 'paring down' loop, and I'd like to keep some prior revisions, just-in-case –  pepoluan Apr 1 '11 at 8:25
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.