overflow tmpfs on /tmp

I had the pleasure of running into the overflow tmp system today 🙂 This lovely simple backup thing is misconfigured, I am aware of this, and this dumps all my junk on the fucking root. Well, not the root, but the /var/backup/ , whatever, its the root partition 🙂 And since that doesnt need to be big, it fills up REALLY quick 🙂

So the root was full & the script noticed this; kicking in & saving me with the a tmpfs thingy 😉

The script responsible for mounting your /tmp as overflow is run at boot time (it is located in /etc/init.d/mountoverflowtmp). It runs a check to see if there is a minimum acceptable space on /tmp and if there is not, it mounts it overflow. It also checks for unneeded overflow tmpfs for /tmp and removes them if that is appropriate. That is why after you freed some disk space and rebooted everything went back to normal.


Its a cool system 🙂 A great step toward the whole userfriendly thing 🙂

Now if they d only have made it a bit bigger 🙂 1mb isnt much..

Still – Bloody Cool System 🙂

Published by Gert


2 thoughts on “overflow tmpfs on /tmp

  1. 🙂
    Dont you just LOVE 🙂 smily abuse 🙂
    I do 🙂
    🙂 Smily 🙂 Abuse 🙂 Is COOL 🙂
    hihi 🙂


  2. It is quite easy to enlarge the emergency /tmp. Just edit the script and add a variable:
    mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp
    inserting size=$MINTMPKB instead of size=1048576

    create a /etc/default/mountoverflowtmp and type MINTPKB=67108864 in it.
    Then start the script again and you’ll have a 64MB /tmp at your disposal. Change the value to how many bytes you need (don’t set more than the available ram! 🙂

    P.S.: I know the post is old, but I thought it could be useful for someone googling about it or having a “no space left on device” error while trying to free space using a NAS mounted using CIFS or in similar scenarios


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: