overflow tmp folder on aws

When you receive an error message like

scp: writing /tmp/mkinitramfs_Y2BgCE/ [..] : No space left on device

check how big your tmp folder is. If it looks like

overflow        1.0M  1.0M     0 100% /tmp

your volume was probably full at a time. After you allocated new disk space umount your volume with

umount /tmp

If you receive the error “umount: /tmp: device is busy.” run “lsof /tmp/” to see what is using it.

After umounting /tmp your system should work fine again. You can prevent /tmp from reappearing after a restart with

echo 'MINTMPKB=0' > /etc/default/mountoverflowtmp

 

Leave a Reply

Your email address will not be published.