My root partition is almost full

Hi, my root partition “/” is growing so fast that it will soon become full. I don’t know what to delete, is there an application that delete unnecessarily files like on windows?
My root partition size is 20gb and I have 15gb used, is it normal specially that I recently installed Open-suse ?

By doing a “Preview in file size view”, I found that the “/var/log” folder is the origin of the problem (nearly 12GB).
How to disable log files?

joker med adjusted his/her AFDB on Wednesday 02 Sep 2009 06:46 to write:

>
> By doing a “Preview in file size view”, I found that the “/var/log”
> folder is the origin of the problem (nearly 12GB).
> How to disable log files?
>
>

You could install logrotate from the repos, this allows the logs to be
compressed on a regular basis ( cron job ) controlled through
YaST>System>sysconfig editor, while in there have a look around, you can get
SuSE to celete your temp dirs on boot and other stuff to keep such things in
check.

In there is also the option of when to delete the log files after different
periods, which to keep etc…

However 12gb it a bit much for log files, better have a look and see which
are the really big ones and why they are that big, look for error reports
and such, also if they are from the firewall you can change the reporting
params in the Yast>security>firewall this allows you to only get logs for
different types of things.

HTH

Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum

Something wrong there. Can you navigate further and see which folder / file is the culprit?
It should be ok to remove a log though.

The two giant files was on the /log folder “messages120809” with 8GB & “messages310809” with 3GB. I deleted them in order to free some space. I also disabled “syslog” cause I’ve red that he’s the responsible for writing log files.
But talking about “error messages” reminded me that I had faced many troubles making my wireless connection to work.
Now after I set up my wireless connection and deleted the log files I’ll have an eye on their sizes.

I also disabled “syslog” cause I’ve red that he’s the responsible for writing log files.

That’s not a very good idea. Logs are extremely important when things are going wrong. The way to go is to rotate the logs and delete old logfiles when they are no longer needed.

It’s true but linux have to periodically delete log files when they are too old or big.
It seems to be an option to perform this job on: “Yast->/etc/Sysconfig editor” called “LONG_TMP_DIRS_TO_CLEAR”, in wich you type the folder that you want to be deleted when it become old exaclty as for temporary files.

joker med wrote:
> The two giant files was on the /log folder “messages120809” with 8GB &
> “messages310809” with 3GB. I deleted them in order to free some space. I
> also disabled “syslog” cause I’ve red that he’s the responsible for
> writing log files.

You want to have syslog running. To deal w/the build up of old log
files use logrotate. Look in /etc/logrotate.d and edit the settings to
suit. In particular I’d adjust the settings in /etc/logrotate.d/syslog
and change the maxage and/or rotate parameters to something more to your
liking. See man logrotate for the details…

…Kevin

Kevin Miller
Juneau, Alaska
http://www.alaska.net/~atftb
In a recent poll, seven out of ten hard drives preferred Linux.