Results 1 to 8 of 8

Thread: My root partition is almost full

  1. #1
    Join Date
    Mar 2009
    Location
    Tunisia
    Posts
    26

    Default 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 ?

  2. #2
    Join Date
    Mar 2009
    Location
    Tunisia
    Posts
    26

    Default Re: My root partition is almost full

    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?

  3. #3
    Join Date
    Nov 2008
    Location
    N. Wales
    Posts
    1,028

    Default Re: My root partition is almost full

    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

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,719
    Blog Entries
    20

    Default Re: My root partition is almost full

    Something wrong there. Can you navigate further and see which folder / file is the culprit?
    It should be ok to remove a log though.
    Leap 15_KDE
    My Articles Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Mar 2009
    Location
    Tunisia
    Posts
    26

    Default Re: My root partition is almost full

    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.

  6. #6
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Re: My root partition is almost full

    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.

  7. #7
    Join Date
    Mar 2009
    Location
    Tunisia
    Posts
    26

    Default Re: My root partition is almost full

    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.

  8. #8
    Kevin Miller NNTP User

    Default Re: My root partition is almost full

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •