home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / apps / 3090 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.9 KB  |  58 lines

  1. Newsgroups: comp.sys.sun.apps
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!dptg!ulysses!allegra!princeton!siemens!aad
  3. From: aad@siemens.com (Anthony A. Datri)
  4. Subject: Re: Can f77 be taught not to use /tmp?
  5. Message-ID: <C1FDwv.68I@siemens.com>
  6. Sender: news@siemens.com (NeTnEwS)
  7. Nntp-Posting-Host: lovecraft.siemens.com
  8. Organization: Siemens Corporate Research, Princeton (Plainsboro), NJ
  9. References: <1993Jan20.185627.19507@mapsut.einstein.com> <447@ftms.UUCP>
  10. Date: Mon, 25 Jan 1993 19:53:18 GMT
  11. Lines: 45
  12.  
  13. ><Our Sparc systems have the default configuration for disk partitioning, which
  14. ><gives us a whopping 7.25 MB for the root partition.
  15.  
  16. That's often too small anyway.
  17.  
  18. >so that none of the temp space is in / (root).  Sun's brilliant idea of
  19. >providing temp directories in a filesystem that is way too small is rediculous.
  20.  
  21. I have to believe that somewhere in the docs is a recommendation to do something
  22. about /tmp if you're going to be making significant use of it.  They provide
  23. a directory.  If you want to mount a filesystem on it, that's up to you.
  24. There's nothing unique about Sun there.
  25.  
  26. >So, the following is done:
  27.  
  28. >    rm -r /tmp /var/tmp /usr/tmp
  29. >    mkdir /usr/tmp
  30. >    chmod 777 /usr/tmp
  31. >    ln -s /usr/tmp /tmp
  32. >    ln -s /usr/tmp /var/tmp
  33.  
  34. You're begging to lose.  There are several problems here:
  35.  
  36. o If just / is mounted, /tmp points to nowhere.
  37.  
  38. o As of 4.1.3, /etc/rc does
  39.  
  40.     cd /tmp; rm -f - *
  41.  
  42. Users -- including scripts and executables -- are used to the behavior that
  43.  
  44.     - nothing in /{usr,var}/tmp is touched at reboot
  45.     - non-directories in /tmp *are* removed at reboot
  46.     - /tmp and /usr/tmp are distinct wrt filenames
  47.  
  48. If the activity and available space warrant, make /tmp a filesystem.  If
  49. activity and available space warrant, move /var to /usr:
  50.  
  51.     cd / ; tar cf - var | (cd /usr ; tar xf -)
  52.     rm -rf /var
  53.     # make an lofs mount of /usr/tmp to /tmp
  54.  
  55. -- 
  56.  
  57. ======================================================================8--<
  58.