Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a 80 GB HDD without any partitions. One day I realised that I have lost most of my free disk space. I discovered that /var/log/kern.log.1 takes up 25 GB of space and there is no delete option for that file.

Here is a screenshot of the problem.

https://docs.google.com/open?id=0B39N7lgxQwcIZ09aWFVBcklrWWc

I am new to Ubuntu/Linux. Please Help. Thank You.

share|improve this question
    
How large are the other kern.log-files in this directory? Is kern.log.1 the only large file? –  qbi Jan 10 '13 at 8:15
    
yes kern.log.1 is the only large file, others are in the range of few mb –  Abhishek Prakash Jan 11 '13 at 8:13
    
In general it might be save to delete the file as @elias suggested. However such a large log is usually a hint that there is or was a problem. So you should monitor if your system produces such a large file again. If yes, you should look into the file. –  qbi Jan 11 '13 at 11:15
add comment

1 Answer

up vote 0 down vote accepted

You should be fine removing that file, cause it's an already rotated log. As you need root permissions to do that, you won't have an option in the GUI to delete that file.

You can do it from the command line:

sudo rm /var/log/kern.log.1

Each time you boot, log files will be created and rotated again, so you should probably watch for the next kern.log.* file sizes. Related bug report on Launchpad: https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/115774

share|improve this answer
    
It worked for me. Thank you very much but i was unable to open the link you provided. –  Abhishek Prakash Jan 11 '13 at 8:17
    
You're welcome. That's alright, that link is just a bug reported by other users with the same problem. If you liked my answer, you can mark it as accepted by clicking the V mark besides it. –  elias Jan 11 '13 at 10:39
add 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.