140f6
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
Well, subject to local interpretations (obviously), hier(7) says
Code:
/tmp/ temporary files that are not guaranteed to persist across sys-
tem reboots
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! Внимание: лифт вниз не поднимает |
|
#3
|
||||
|
||||
|
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! Внимание: лифт вниз не поднимает |
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
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
|
|
#6
|
|||
|
|||
|
I have not put anything in there. I am just worried if i will have problems after deleting the contents of /tmp
|
|
#7
|
|||
|
|||
|
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! |
|
#8
|
||||
|
||||
|
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. |
|
#9
|
|||
|
|||
|
clear_tmp_enable is *disabled* by default.
__________________
May the source be with you! |
|
#10
|
||||
|
||||
|
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. |
|
#11
|
|||
|
|||
|
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! |
|
#12
|
||||
|
||||
|
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! Внимание: лифт вниз не поднимает |
![]() |
| Tags |
| /tmp full |
| Thread Tools | |
| Display Modes | |
|
|
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 |