Move /tmp to your /home partition

It seems like such a simple request, yet it has taken weeks of intermittent searching to find an answer. My notebook has just 3 partitions:

* 8GB for / (root)
* 2GB for /swap
* 85GB for /home

With this configuration I sometimes run into a problem with /tmp not having enough free space to burn DVD’s or cache large files since it is sharing the 8GB with everything else under root. The solution is actually rather simple, in my case:

sudo mv /tmp /home/tmp
sudo ln -s /home/tmp /tmp
reboot

Once you reboot, you can browse to /tmp and check the free space. It should now be the same as your /home partition. Of course, if your largest partition is dedicated to something other than /home, you can easily substitute that path in the above commands.

For more information: http://ezine.daemonnews.org/200212/symlink.html

Post a Comment

Your email is never shared. Required fields are marked *

*
*