Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ames!sgi!shinobu!odin!moose.asd.sgi.com!jwag From: jwag@moose.asd.sgi.com (Chris Wagner) Newsgroups: comp.sys.sgi Subject: Re: Linking /tmp to /usr/tmp Message-ID: <11455@odin.corp.sgi.com> Date: 6 Aug 90 19:47:36 GMT References: <66088@sgi.sgi.com> <9008031155.AA02414@aero4.larc.nasa.gov> <11369@odin.corp.sgi.com> <11387@odin.corp.sgi.com> Sender: news@odin.corp.sgi.com Reply-To: jwag@moose.asd.sgi.com (Chris Wagner) Organization: Silicon Graphics, Research & Development Lines: 40 In article <66088@sgi.sgi.com>, vjs@rhyolite.wpd.sgi.com (Vernon Schryver) writes: > > In passing, /etc/init.d/RMTMPFILES might be interesting to those who want to > make /tmp into a link. That is the script that tries to clean /tmp, > /usr/tmp, and so on when the system is started. > > > Vernon Schryver > vjs@sgi.com VJS is correct - please everyone - if you do NOT know the answer - do NOT post random info!!!!! In 3.3 we actually tried to allow this since for a while now customers have asked for this ability. The pertinent lines from /etc/init.d/RMTMPFILES: # if /tmp or any of its subdirectories is a mount point do not remove it. # if /tmp symbolic links to other directory do not remove it. M=`mount | grep ' on /tmp' | wc -l` if [ $M -eq 0 ]; then if [ ! -l /tmp ]; then rm -rf /tmp mkdir /tmp fi fi As for running in single user mode - things like ex/ve are in /usr/bin - so noone will be running those without /usr mounted! As for the X socket - I believe in order to start this whole scenario - one need to log out, and log back in as root NOGRAPHICS - this way news and X will not be started up - here is your chance to link /tmp and /etc/gl Notice that the 3.3 installation tools HANDLE symbolic links just fine - I personally have my /usr/demos and /usr/adm/crash symlinked onto another disk Chris Wagner