LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-17-2004, 08:42 AM   #1
little_ball
Member
 
Registered: Oct 2003
Location: teddy bears Land
Distribution: Slackware 10
Posts: 176

Rep: Reputation: 30
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?
 
Old 02-17-2004, 08:45 AM   #2
Melkor
Member
 
Registered: Aug 2003
Location: MN
Distribution: Linux Mint
Posts: 179

Rep: Reputation: 34
Hm. Sounds like system logs getting out of control, to me.

/usr/var/logs?
 
Old 02-17-2004, 08:57 AM   #3
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
There are log files in /var/log/ as well.
 
Old 02-17-2004, 09:04 AM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
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.
 
Old 02-17-2004, 09:05 AM   #5
little_ball
Member
 
Registered: Oct 2003
Location: teddy bears Land
Distribution: Slackware 10
Posts: 176

Original Poster
Rep: Reputation: 30
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.
 
Old 02-17-2004, 09:17 AM   #6
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
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.
 
Old 02-17-2004, 09:21 AM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
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.
 
Old 02-17-2004, 09:57 AM   #8
little_ball
Member
 
Registered: Oct 2003
Location: teddy bears Land
Distribution: Slackware 10
Posts: 176

Original Poster
Rep: Reputation: 30
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
 
Old 02-17-2004, 10:31 AM   #9
Melkor
Member
 
Registered: Aug 2003
Location: MN
Distribution: Linux Mint
Posts: 179

Rep: Reputation: 34
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HARDDRIVE HELP!!! i try and put slack on 3 different HD's this is what i get.... DJpupster Linux - Hardware 8 10-14-2004 03:59 PM
Where do you put your files? dbc001 Linux - General 7 02-23-2004 10:04 AM
Where to put files? codedv Linux - General 2 12-14-2003 11:26 AM
Where do I put my text files rewtem General 4 03-27-2003 08:38 AM
*.h files....where to put them for #include centr0 Programming 7 03-13-2003 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration