140f6 /tmp is full :( - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old February 13th, 2010, 03:58
trybeingarun trybeingarun is offline
Junior Member
 
Join Date: Dec 2009
Posts: 79
Thanks: 6
Thanked 0 Times in 0 Posts
Default /tmp is full :(

Hi all,
My /tmp(3.5 GB) is full now. My questions are...

Is this an issue to be bothered about?
Is it okay if i delete everything inside /tmp (because it is temporary files)?
If this is an issue then what should I do to make sure it does not get full then next time?
Reply With Quote
  #2  
Old February 13th, 2010, 07:29
fronclynne's Avatar
fronclynne fronclynne is offline
Senior Member
 
Join Date: Feb 2009
Location: Lunch Time
Posts: 1,297
Thanks: 132
Thanked 166 Times in 143 Posts
Default

Well, subject to local interpretations (obviously), hier(7) says
Code:
     /tmp/      temporary files that are not guaranteed to persist across sys-
                tem reboots
But it's your machine. Normally the system doesn't put anything into /tmp/ that it expects to find very much later, but there are poorly built apps and there are also different conventions: back in the dim & distant past people mounted backup volumes and such under /tmp/.

As far as local conventions go, on my old x40, I use an mfs /tmp/, so nothing ever persists across reboots.
__________________
Quid habemus reliquum?
Nutrimentum anatum!

Внимание: лифт вниз не поднимает
Reply With Quote
  #3  
Old February 13th, 2010, 07:31
fronclynne's Avatar
fronclynne fronclynne is offline
Senior Member
 
Join Date: Feb 2009
Location: Lunch Time
Posts: 1,297
Thanks: 132
Thanked 166 Times in 143 Posts
Default

Also, if you want, you can set "clear_tmp_enable=YES" in /etc/rc.conf to take care of cleanups for you. Beware that it has no idea what is important to you.
__________________
Quid habemus reliquum?
Nutrimentum anatum!

Внимание: лифт вниз не поднимает
Reply With Quote
  #4  
Old February 13th, 2010, 12:02
trybeingarun trybeingarun is offline
Junior Member
 
Join Date: Dec 2009
Posts: 79
Thanks: 6
Thanked 0 Times in 0 Posts
Default

As a temporary solution I have created a tmp folder in my home directory and have created a sym link from tmp to that folder. I have also changed the access permissions.
Reply With Quote
  #5  
Old February 13th, 2010, 13:26
mk mk is offline
Member
 
Join Date: Nov 2008
Posts: 300
Thanks: 9
Thanked 16 Times in 17 Posts
Default

what do you have actualy in /tmp ? is it important to you ? if it is copy it to some other place on your system and clear /tmp,if not and is junk, just rm FILE or put clear_tmp option in rc.conf
Reply With Quote
  #6  
Old February 13th, 2010, 14:11
trybeingarun trybeingarun is offline
Junior Member
 
Join Date: Dec 2009
Posts: 79
Thanks: 6
Thanked 0 Times in 0 Posts
Default

I have not put anything in there. I am just worried if i will have problems after deleting the contents of /tmp
Reply With Quote
  #7  
Old February 13th, 2010, 16:18
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,700
Thanks: 0
Thanked 301 Times in 245 Posts
Default

Well, check the files stored there and remove those that are taking all the extra space and that *you* don't need. If programs need one file or another, they'll recreate them on their next run.
My /tmp partition is virtually empty, mostly contains a few sockets and is 256MB big.

What's the output of % du -h /tmp?
__________________
May the source be with you!
Reply With Quote
  #8  
Old February 15th, 2010, 08:00
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

Just reboot. By default the system will clear /tmp and rebuild the directory structure needed for X11.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #9  
Old February 15th, 2010, 10:53
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,700
Thanks: 0
Thanked 301 Times in 245 Posts
Default

clear_tmp_enable is *disabled* by default.
__________________
May the source be with you!
Reply With Quote
  #10  
Old February 15th, 2010, 11:09
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

Quote:
Originally Posted by Beastie View Post
clear_tmp_enable is *disabled* by default.
Yes, but clear_tmp_X is enabled by default.

From /etc/defaults/rc.conf:
Code:
clear_tmp_X="YES"       # Clear and recreate X11-related directories in /tmp
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #11  
Old February 15th, 2010, 13:06
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,700
Thanks: 0
Thanked 301 Times in 245 Posts
Default

But I doubt the few X-related directories that usually only contain sockets and "lock" files could fill almost 3.5GB! There must be something else in there.
__________________
May the source be with you!
Reply With Quote
  #12  
Old February 15th, 2010, 18:55
fronclynne's Avatar
fronclynne fronclynne is offline
Senior Member
 
Join Date: Feb 2009
Location: Lunch Time
Posts: 1,297
Thanks: 132
Thanked 166 Times in 143 Posts
Default

I agree, unless /tmp/ is being purposefully used to store stuff, 3.5G is very high (like an order of magnitude higher than I've seen in ten years). I have, in the dim & distant past, tossed a *.tar in there and forgotten to delete it, but that's not really the system's fault.
__________________
Quid habemus reliquum?
Nutrimentum anatum!

Внимание: лифт вниз не поднимает
Reply With Quote
Reply

Tags
/tmp full

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dbus and gvfs files in /tmp and /var/tmp pacija GNOME 4 October 22nd, 2010 16:30
[Solved] Problems viewing message in Mutt and /tmp gets full. bsdsys_x86 Web & Network Services 9 September 27th, 2009 03:08
Lost Superblocks for /tmp and /var DrJ System Hardware 2 July 28th, 2009 15:56
/tmp filesystem used ruaoh General 3 May 8th, 2009 23:56
I have two /tmp mfaridi Installing & Upgrading 11 December 20th, 2008 11:01


All times are GMT +1. The time now is 09:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0