SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
Last edited by benjithegreat98; 02-17-2004 at 09:19 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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.