*BSD News Article 71417


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!zombie.ncsc.mil!newsgate.duke.edu!news.mathworks.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: MFS - Why?
Date: 19 Jun 1996 06:19:59 +0100
Organization: Coverform Ltd.
Lines: 32
Message-ID: <4q82lv$bs@anorak.coverform.lan>
References: <AEn4jRr0u3@qsar.chem.msu.su> <npX7tgO@quack.kfu.com> <4po5am$6hc@news.zipnet.net> <Dt536J.MEK@info.elvisti.kiev.ua>
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Andrew V. Stesin (stesin@elvisti.kiev.ua) wrote:

: 	Or: what will you do after singleuser boot when you say 'vi'?
: 	/var/tmp might not exist (or be mounted) at the moment.

Just create /usr/tmp on the root filesystem.  The "/tmp" bit of the
usr filesystem will just obscure this when it's mounted.

On a sideline, why do we have /tmp, /var/tmp and /usr/tmp anyway ?
Wouldn't it be easier if we just had /tmp as a sym-link to where-ever
we have some space - default /usr/tmp ?

Then, people that want to mount a /tmp partition can do so (remove the
sym-link and create it as a directory & mountpoint), and people that
want it as part of /usr or /var can also do so.  It took me a while to
figure out why my laptop had problems editing big files:

# l -d /tmp /usr/tmp /var/tmp
lrwxr-xr-x  1 root  wheel    7 Jun 17 23:04 /tmp -> usr/tmp
drwxrwxrwt  3 root  wheel  512 Jun 17 23:06 /var/tmp
drwxrwxrwt  4 bin   bin    512 Jun 19 06:13 /usr/tmp

# df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0a       19966    16358     2012    89%    /
/dev/wd0s2e    703790   487382   160106    75%    /usr
/dev/wd0s1     306696   242648    64048    79%    /dos
procfs              4        4        0   100%    /proc

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....