Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-20-2007, 01:21 PM   #1
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
Old 02-20-2007, 01:42 PM   #2
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
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):
telinit 1
rm -fr /tmp/*
rm -fr /tmp/.*
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:
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 01:49 PM.
Old 02-20-2007, 04:56 PM   #3
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

Old 02-20-2007, 05:10 PM   #4
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 165Reputation: 165
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, 06:00 PM   #5
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

Old 02-20-2007, 06:14 PM   #6
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
How about using Tmpwatch? It's default in about all distro's but nearly nobody mentions it...
Old 02-21-2007, 09:44 AM   #7
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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 01:37 PM.

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