LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2007, 12:21 PM   #1
madman100
Member
 
Registered: Jul 2006
Posts: 37

Rep: Reputation: 15
Help with /tmp out of space


Hi all need help keep getting this when trying to log in to one of my user the following installation problem was detected while trying to start KDE
TEMP directory (/tmp)is out of disk space unable to start KDE
i can still log in to root but not the user can i increase the size
of /tmp and if so how or can i clean it up from terminal if so how and the code i will need to do so the os is mandriva 2007
Thanks
madman100
 
Old 02-20-2007, 12:42 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
if your /tmp is a directory in your / filesystem and you have nothing important in it, then just delete its contents... something along the lines of (as root):
Code:
telinit 1
rm -fr /tmp/*
rm -fr /tmp/.*
reboot
keep in mind that in the above example you'd still have problems if the / filesystem itself was too full, since /tmp resides on it...

wouldn't hurt to make sure the permissions are right too:
Code:
chmod 1777 /tmp
but if your /tmp is a tmpfs filesystem then rebooting would actually clear it automagically... you can find-out by looking at your /etc/fstab file - feel free to post it also...

Last edited by win32sux; 02-20-2007 at 12:49 PM.
 
Old 02-20-2007, 03:56 PM   #3
madman100
Member
 
Registered: Jul 2006
Posts: 37

Original Poster
Rep: Reputation: 15
Hi win32sux thanks for the help tryed the code but it would not let me remove i think that webmin has locked it even as i was log in to root so i am reloading back from my backup now how can i stop this happened again

Thanks
madman100
 
Old 02-20-2007, 04:10 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Just out of curiosity, what error did you get when you tried to remove the files?

As far as stopping it happening again, you need to look at the contents of /tmp and figure out what was in there so you can identify how they got there. If your /tmp directory isn't on its own partition, have a look in the other directories on that partition. It may be that your log files are using up a lot of space. Tools like logrotate are useful for managing logs.
 
Old 02-20-2007, 05:00 PM   #5
madman100
Member
 
Registered: Jul 2006
Posts: 37

Original Poster
Rep: Reputation: 15
Hi gilead the error that i got when trying to remove was could not remove /tmp `..`
i think it bitdefender or hellanzb what causing the problem or the webmin how can i give tmp it own partion i have a 500gb in the machine so i would like to take 20gb from the home and make a partion for the tmp or just make the tmp dir bigger
i have qtparted installed on the machine how can i resize the drive when it running

Thanks
madman100
 
Old 02-20-2007, 05:14 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
How about using Tmpwatch? It's default in about all distro's but nearly nobody mentions it...
 
Old 02-21-2007, 08:44 AM   #7
madman100
Member
 
Registered: Jul 2006
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks to all for the help i have reloaded back from the backup and gave tmp it own partion of 8gb so hope fully this will solve the problem of the lack of space for /tmp till i can find out what caused it to run out of space

Thanks
madman100
 
  


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
increase /tmp space to 1GB gobbs Linux - Newbie 3 01-22-2007 01:08 AM
Newbie - X won't let me login because not enough free disk space in /tmp sart1 Linux - Software 1 06-02-2005 10:22 PM
/tmp not enough free space jang Linux - General 12 02-10-2005 03:21 AM
Out of space in /tmp? kaos1409 Linux - General 6 03-28-2003 06:21 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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