LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Where does slack put the temps files?? (https://www.linuxquestions.org/questions/slackware-14/where-does-slack-put-the-temps-files-147149/)

little_ball 02-17-2004 08:42 AM

Where does slack put the temps files??
 
maybe this is a really nob or stupid question but, every day i found out that my HD is getting more full and full and i'm having less space, i don't know why is getting full cause i haven't install anything new in the root partition but it still growing why this happens? where does slackware put the temp files and doesn't delete then ? i check out the directory call tmp and have only 3 more directories on it, and maybe 4 text files that doesn't take much space. so i need to know why my HD is getting full, everyday it grows some 2 or 5 MB more is not gonna stop until i have no disk space left.


someone knows where i could delete this massive attacks of temp files? where are they?

Melkor 02-17-2004 08:45 AM

Hm. Sounds like system logs getting out of control, to me.

/usr/var/logs?

benjithegreat98 02-17-2004 08:57 AM

There are log files in /var/log/ as well.

tangle 02-17-2004 09:04 AM

As Melkor said, check the /var/log directory and see if the log files are big. If so check and see what is filling them up. Also, you might want to look into logrotate.

little_ball 02-17-2004 09:05 AM

Probably, cause the directory /var/log and other call /var/admin and the same directory is in /usr/admin those have 356 MB each one .

The problem is, i don't know what i can and what i can't delete from then, i once delete the directories from /var/log and slackware didn't recognize what files i have installed, in fact in those days i couldn't delete, upgrade or anything cause i delete the directories as i say from /var/log i have to reinstall all slackware again, and i don't want that happen to me again, so honestly the folders /var/log are full but i don't know what should delete and doesn't affect me.

benjithegreat98 02-17-2004 09:17 AM

If you go to the file /etc/logrotate.conf there is a line that says rotate 4. This means you will keep 4 weeks of log files. If you make it rotate 1 then you will keep 1 week of logs. The next time that slackware does the cron job that has the logrotate program in it, then slack will delete files for you. Safely.

Also, are there any specific files that are taking up large amounts of space?

edit: after you change the config file you can probably run logrotate and that will delete the files now. instead of tonight.

tangle 02-17-2004 09:21 AM

Try logrotate, it rotates the log files. You can set it to rotate them everyday, week, month or what ever you like. It is on your Slackware CD1. All you have to do is install the packages and make sure that the listing in the /etc/rc.d/rc.M (I think) is uncommented. I believe that it is set to rotate the logs every 5 days by default. Once this is setup and running right. You will see files named in the /var/log like message, message.1, message.2, etc... After the log has rotated 5 times it is deleted. I am not sure what you are using this box for, but for you log files to grow 5mb per day is unusual for a home PC. You might want to check the logs especially the /var/log/messages and see what is filling them up.

little_ball 02-17-2004 09:57 AM

yes is a home PC, only that i have an ftp and ssh server on it. for the friends.

it's just amazing that samba have 2 logs files, each of then whit 300 MB of size, i think maybe per day it grow some 1 MB cause those 2 text files having 300 MB each one, it's a blast ... and the log files from proftpd too, maybe exceed of normal 256 MB each one.

of course i delete then, not the directory yes the text log files.

i may try out the lograte idea, and uncomment then in rc.M yes it's call rc.M cause this Innocent massive HD overflow is driving my out.

thanks :)

Melkor 02-17-2004 10:31 AM

Quote:

Originally posted by benjithegreat98
If you go to the file /etc/logrotate.conf there is a line that says rotate 4. This means you will keep 4 weeks of log files. If you make it rotate 1 then you will keep 1 week of logs. The next time that slackware does the cron job that has the logrotate program in it, then slack will delete files for you. Safely.

Also, are there any specific files that are taking up large amounts of space?

edit: after you change the config file you can probably run logrotate and that will delete the files now. instead of tonight.

Good info... I didn't know anything about logrotate, myself.

Gonna have to look into that now. :cool:


All times are GMT -5. The time now is 04:18 PM.