Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

[gentoo-user] Re: Garbage in /tmp or /var/tmp

Michael Schmarck

2008-04-14


Author LoginPost Reply
Steven Lembark <lembark@(protected):

> Volker Armin Hemmann wrote:
>> On Sonntag, 13. April 2008, Neil Bothwick wrote:
>>> On Sun, 13 Apr 2008 18:38:31 +0200, Florian Philipp wrote:
>>>> Due to disk space restrictions I've decided to make /tmp a symlink
>>>> to /var/tmp instead of reserving space for both.
>>> Why not use tmpfs for /tmp? It usually requires very little space, and
>>> will use swap if memory is tight.
>>
>> I second that, tmpfs for /tmp is great:
>>
>> tmpfs           512M  12K 512M  1% /tmp
>
> Catch: You loose it all on reboot.

That's no catch. /tmp is meant to be empty upon reboot.
No application should assume that things survive a reboot
in /tmp - you use /var/tmp for temporary stuff, which is
meant to be available after a reboot.

> Since things like vi keep their in-work backups
> there,

What? I've got .blah.swp files all over the place.
But not in /tmp.

Michael

--
gentoo-user@(protected)

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.