home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!rpi!uwm.edu!daffy!uwvax!astroatc!vidiot!ftms!brown
- From: brown@ftms.UUCP (Vidiot)
- Newsgroups: comp.sys.sun.apps
- Subject: Re: Can f77 be taught not to use /tmp?
- Message-ID: <447@ftms.UUCP>
- Date: 22 Jan 93 15:36:27 GMT
- References: <1993Jan20.185627.19507@mapsut.einstein.com>
- Reply-To: brown@ftms.UUCP (Vidiot)
- Organization: Vidiot's Other Hangout
- Lines: 48
-
- In article <1993Jan20.185627.19507@mapsut.einstein.com> shmuel@mapsut.einstein.com (Shmuel Einstein) writes:
- <Our Sparc systems have the default configuration for disk partitioning, which
- <gives us a whopping 7.25 MB for the root partition. This brilliant amount
- <makes the /tmp directory quite tight to say the least, let alone that it
- <compete's with /var/tmp. We have moved /var/tmp to another partition and
- <linked it back to /var with no problem.
- <
- <It seems that f77 uses /tmp as its temporary file repository. For large
- <compilations, we run out of space. Although there is an option for allowing
- <the compiler passes to communicate via pipes, it seems that there should be
- <a way of designating the compiler's temporary directory also.
- <
- <If one cannot change the compiler's temp directory, is it permissable to
- <change /tmp to point to space on another partition? I am concerned because
- <of single-user mode and various other aspects of system activity which may
- <be affected before the system has not mounted other partitions.
-
- While this isn't a perfect solution, all of our systems have been reconfigured
- 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.
-
- 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
-
- This should be done either as single user or right after booting as root, with
- no other users on the system. Obviously, do not have X windows running either.
-
- Because we also ship a disk/tape subsystem with our configuration, a partition
- has been set aside on the second disk and it gets mounted as /usr/tmp. Be
- sure and do a "chmod 777 /usr/tmp" after mounting it for the first time.
-
- I have only run across one problem with this configuration, upgrading the
- SunOS, using the install_upgrade (or whatever it is called). It uses the
- temp directories as if they were unique. So, if the OS needs upgrading,
- the links need to be removed and a mkdir done on each of them. After the
- OS upgrade is done, the links can be put back in place. It isn't a real
- pain and the OS isn't changed that often :-)
-
- --
- harvard\
- ucbvax!uwvax!astroatc!ftms!brown or uu2.psi.com!ftms!brown
- rutgers/
- INTERNET: brown@wi.extrel.com or ftms!brown%astroatc.UUCP@cs.wisc.edu
-