When tab-autocompleting in terminal, I'm getting the error:
-bash: cannot create temp file for here-document: No space left on device
This would appear to mean that /tmp/
is full, but it's mounted on my hard disk, which itself has lots of space left.
/tmp
only contains one thing: a folder called /tmp/.mount_VCeNjK/
.
I can't find out anything about it, because even sudo
and su
can't chmod
it, read it, umount
it, rm
it, or stat
it. They complain about permissions and say that it's busy.
What can I do? I'm nothing without my autocomplete.
/tmp
is usually mounted in memory since it'stmpfs
filesystem. Rundf
command, see what's the actual usage it reports. You can further analyze what takes up most memory viancdu
or justdu
running over/tmp
. There's also a way to increase/tmp
size: askubuntu.com/a/199708/295286sudo lsof +D /tmp/.mount_VCeNjK/
will show you which processes have the directory (or files and directories underneath) open. When these processes finish (or arekill
ed), you'll probably be able tosudo rm -rf
. But be aware that this will have side effects that I can't predict, so you MUST proceed with care./tmp
using tmpfs, seemount | grep tmp
for an example./tmp
mounted as tmpfs in previous releases of Ubuntu, hence assuming it's default. Could have happened that I mounted it there myself at some point, but I don't recall doing so. There's apparently discussion on centos forum which suggests it may depend on amount of RAM