Quick dumb question...

Bill Mullen moon at lunarhub.com
Fri Aug 12 20:50:01 EDT 2005


On Fri, 2005-08-12 at 14:18, Brian Chabot wrote:
> How do you change the directory used for TMPDIR system wide?
> 
> (It's Mandrake 10.0)
> 
> I ask because the partition used by /tmp (the root filesystem... don't 
> ask.  It's an old legacy system) is filling up FAST on an old machine.

How's the available RAM/swap situation under the system's normal load?
If it's sufficient, you might want to consider placing /tmp on a tmpfs
ramdisk. Drop to init 1, clean out /tmp, and add this line to fstab:

none /tmp tmpfs defaults 0 0

Mount /tmp, and back to init whatever. Now /tmp will use no space on the
root filesystem, it's contents will vanish on each reboot, and no one's
environment will need adjusting. BTW, this is toggled in the GUI with
the "Clean /tmp at each boot" checkbox, which hides behind the Advanced
button under Boot -> Boot Loader in MDK Control Center - but I'd want to
do it as above, to be certain to regain the HD space currently in use.

HTH!

-- 
Bill Mullen
RLU# 270075




More information about the gnhlug-discuss mailing list