LinuxQuestions.org
Help answer threads with 0 replies.
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 05-21-2009, 11:14 AM   #1
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Rep: Reputation: 19
Filesystem management - /tmp full


Today I got on my PC and began my daily tasks to find that my /tmp filesystem seems to be full. I can't even initiate downloads from Iceweasel.
Code:
$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1              6728280   6402620         0 100% /
tmpfs                   257108         0    257108   0% /lib/init/rw
udev                     10240       124     10116   2% /dev
tmpfs                   257108         0    257108   0% /dev/shm
/dev/hda6             18722372  10310664   7460664  59% /home
overflow                  1024      1024         0 100% /tmp
I don't recall ever seeing "overflow" there before, and I thought that /tmp was part of a different (much larger) filesystem. 1MB isn't enough to do hardly anything; I don't understand why there would only be 1MB for /tmp. Also, I notice that my hda1 seems to be full. I imagine that this is what's causing the problem. If so, is there an easy way to free space on that partition (temporary files etc.)? I know that buying a $50 HDD could easily increase my HDD space by around 25x, but I'm a bit tight on funds at the moment.
 
Old 05-21-2009, 11:52 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
cd /tmp; ls -AlS /tmp | more

Then remove some if you think it is safe.

also do the same for /var/tmp
 
Old 05-21-2009, 01:22 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
The most worrying pointer is that / is full.

This should never happen, as root usually reserves 5% of the space on / just in case the filesystem gets full and ordinary users can no longer login. Because there's still a bit of space reserved exclusively for root, root can login, perhaps without a GUI, and tidy things up.

Have you been running as root, or a normal user?
 
Old 05-21-2009, 01:46 PM   #4
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
Jinouchi,

Your
Code:
$ df
shows you are running as an ordinary user, so something an ordinary user is doing has filled up your /tmp which will be a folder on /, your /dev/hda1

When root fills up your / partition, the system dies a horrible death until you boot with a CD and make some space again.

I see you have
Code:
tmpfs                   257108         0    257108   0% /dev/shm
that about 256Mb. By defualt /dev/shm is assigned a maximum of half your RAM but it expands from nothing to that limit as you use it. It can also be swapped if RAM is needed.

Provided you do not use /tmp to save anything across reboots you can make your /tmp in RAM
 
Old 05-21-2009, 02:21 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Start by using the following command to quickly free up some space so you can work on this issue.

aptitude clean

that will delete any debian packages in your package cache, which will not harm your system in any way, but should free up some space so you can work on cleaning up your drive space issue with your root partition '/'.

to free up a tiny bit more space

aptitude purge ~c

That will remove any configuration files that are left over from packages you have previously uninstalled.

then I would install locales to purge your system of man pages for languages you can't or don't read..

aptitude install locales


You should now have a bit of free space in which to work to find out where all your disk space has gone..

you may also want to look into utilites such as deborphan and debfoster

Last edited by farslayer; 05-21-2009 at 02:29 PM.
 
Old 05-22-2009, 12:04 AM   #6
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Original Poster
Rep: Reputation: 19
Well, I've manually removed my packages downloaded with apt manually, made sure locals was installed and I removed a couple bytes from /tmp so that I can at least send email. In /var/tmp, there's only about 11MB of data, so I'm not too concerned about clearing that and risking crashing something that needed that data. I've yet to read about deborphan and debfoster, but I'll do that.

I've been running as a normal user, although as administrator I can su to root.

By cleaning apt's cache I've freed 162MB of data, so I guess that's enough to live on. Unfortunately, I had 200MB+ of updates to do, so I had to update in chunks: apt-get upgrade, cancel part way through, dpkg -i *.deb in the cache folder, apt-get clean and then start over again.

In the meantime, any suggestions for HDD conservation?
 
Old 05-22-2009, 12:12 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Use the df and du tools to find out hwere the disk space is beaing used.
Check /var/log dir for large logfiles. Is logrotate functioning? Check via mailx as root to see if you've had any warnings. See also /var/log/messages.
 
  


Reply


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
help on /tmp filesystem squirrel001 Linux - Newbie 1 06-19-2006 07:23 AM
/tmp directory is full? Moses420ca Linux - Newbie 13 01-21-2005 08:48 PM
/tmp is full... benny Linux - Newbie 4 12-10-2003 05:59 AM
/tmp/ is full (so it sayz) the Linux - Newbie 5 04-03-2003 09:15 AM
My /tmp is full FNC Linux - General 3 06-05-2001 04:35 PM


All times are GMT -5. The time now is 06:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration