No space left - tmp is full

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

No space left - tmp is full

Postby viking60 » 06 Mar 2014, 12:19

I came across this message while installing another kernel in one of My VB-distros.
There was enough space according to

Code: Select all

df
but the tmpfs was full. And when tmp is full you get the message that there is not enough space left on your box.

tmpfs is used for swapping memory on some distros and does normally have half the size of the physical RAM. In a Virtualbox that can be scarce.

That is bad especially when replacing a kernel so what to do?

Here is the trick:

Code: Select all

mount -o remount,size=5G,noatime /tmp


This will instantly give you a 5 giga byte tmpfs that will last until your next boot. You can make it 10G or whatever of course.
So you can build and compile your big programs. (You need a 64 bit installation to make more than 2G tmp).

By the next boot it will be back to normal.

If you want a permanently bigger tmpfs you can edit fstab
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

Return to “Tips & Tricks”