*BSD News Article 86164


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Question about /tmp
Date: 3 Jan 1997 21:29:51 GMT
Organization: Private BSD site, Dresden
Lines: 46
Message-ID: <5ajtof$fnk@uriah.heep.sax.de>
References: <5agud4$6jr@newshost.lanl.gov>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Cc: crs@swcp.com,crs@hamlet.lanl.gov
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33589

crs@lanl.gov (Charlie Sorsby) wrote:

> should have asked is "What can I do to prevent /tmp from filling up
> my root file system?"

Make it a separate partition in the first place. ;-)

(That's the solution that i prefer.)

> Suppose that I create /usr/tmp with the same modes as /tmp (i.e.
> drwxrwxrwt) and create a symbolic link to /tmp.
> 
> First: Will this work or will it break something?  One thing that I

It will work.

> can foresee is that, when /usr isn't mounted (e.g. in single user
> mode) I'd have no /tmp.

Very simple: create a /usr/tmp in your root filesystem (must do this
while you're in single-user mode, but apparently with the root f/s
mounted r/w).  So it will be available without /usr mounted, but will
later be shadowed by that mount.

Most people seem to prefer keeping /usr untouched.  For systems where
i don't have a separate /tmp filesystems, i usually go with a large
enough /var filesystem, and make /tmp a symlink to /var/tmp.  Of
course, the same holds valid here for a /var/tmp inside the root
filesystem.  Of course^2, you want to kill the (IMHO fairly useless)
rm -rf /tmp/* stuff from /etc/rc then.

(Why it is useless?  Simple.  My systems are being booted too seldom.
Hence i prefer run-time auto-cleanup.  But that's a matter of taste.)

> I try to keep up with the news group but, just in case, could you
> Cc: any responses to either crs@swcp.com or crs@hamlet.lanl.gov,
> please?

[Cc sent]

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)