home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.apps
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!dptg!ulysses!allegra!princeton!siemens!aad
- From: aad@siemens.com (Anthony A. Datri)
- Subject: Re: Can f77 be taught not to use /tmp?
- Message-ID: <C1FDwv.68I@siemens.com>
- Sender: news@siemens.com (NeTnEwS)
- Nntp-Posting-Host: lovecraft.siemens.com
- Organization: Siemens Corporate Research, Princeton (Plainsboro), NJ
- References: <1993Jan20.185627.19507@mapsut.einstein.com> <447@ftms.UUCP>
- Date: Mon, 25 Jan 1993 19:53:18 GMT
- Lines: 45
-
- ><Our Sparc systems have the default configuration for disk partitioning, which
- ><gives us a whopping 7.25 MB for the root partition.
-
- That's often too small anyway.
-
- >so that none of the temp space is in / (root). Sun's brilliant idea of
- >providing temp directories in a filesystem that is way too small is rediculous.
-
- I have to believe that somewhere in the docs is a recommendation to do something
- about /tmp if you're going to be making significant use of it. They provide
- a directory. If you want to mount a filesystem on it, that's up to you.
- There's nothing unique about Sun there.
-
- >So, the following is done:
-
- > rm -r /tmp /var/tmp /usr/tmp
- > mkdir /usr/tmp
- > chmod 777 /usr/tmp
- > ln -s /usr/tmp /tmp
- > ln -s /usr/tmp /var/tmp
-
- You're begging to lose. There are several problems here:
-
- o If just / is mounted, /tmp points to nowhere.
-
- o As of 4.1.3, /etc/rc does
-
- cd /tmp; rm -f - *
-
- Users -- including scripts and executables -- are used to the behavior that
-
- - nothing in /{usr,var}/tmp is touched at reboot
- - non-directories in /tmp *are* removed at reboot
- - /tmp and /usr/tmp are distinct wrt filenames
-
- If the activity and available space warrant, make /tmp a filesystem. If
- activity and available space warrant, move /var to /usr:
-
- cd / ; tar cf - var | (cd /usr ; tar xf -)
- rm -rf /var
- # make an lofs mount of /usr/tmp to /tmp
-
- --
-
- ======================================================================8--<
-