Increasing size of tmpfs without losing files

Tonight I was compiling xmbc-eden-git from the Arch Linux User Repository, and it kept failing. It took me a while to work out I was running out of temporary space. I was a bit confused until I found out that tmpfs allocates 50% of the computer memory for use as /tmp. I’d not run into a problem like this before hunting around found me the following solution:

mount -t tmpfs tmpfs /tmp -o size=3000M,mode=1777,remount

This will increase the available size of the /tmp to 3Gb. The best thing is it doesn’t lose files. I have tried this on my laptop whilst it is compiling xbmc so far no problems. however I will know more when compilation has finished.

The original post on can be found here:



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.